• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: trouble with Number class, need help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >trouble with Number class, need help (From: Amedeo Mantica <email@hidden>)

  • Prev by Date: trouble with Number class, need help
  • Next by Date: Re: Unicode trouble
  • Previous by thread: trouble with Number class, need help
  • Next by thread: Re: Webobjects-dev Digest, Vol 2, Issue 479
  • Index(es):
    • Date
    • Thread