Re: trouble with Number class, need help
Re: trouble with Number class, need help
- Subject: Re: trouble with Number class, need help
- From: John Bruce <email@hidden>
- Date: Fri, 19 Aug 2005 19:11:31 +1000
you just need to set the value useing an Integer object, since Number
is the super class of Integer. eg.
myObject.setMyNumberValue(new Integer(value));
or
myObject.takeValueForKey(new Integer(value), "myNumberValue");
See the javadoc for Integer for other construction methods i.e
Integer.valueOf(String s);
HTH
John
On 8/19/05, Amedeo Mantica <email@hidden> wrote:
> Hi, this is my problem.
>
> EOModeler set the Integer number and Number class in Java
>
> now, i read class reference... but I'm not able to assing an integer
> value to my variable.
>
> How to assign an integer value to a Number Object ?
> Thanks
> Amedeo
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden