Number


Number java.lang

Java 1.0 serializable

This is an abstract class that is the superclass of Byte , Short , Integer , Long , Float , and Double . It defines the conversion functions those types implement.

Figure 10-47. java.lang.Number

 public abstract class  Number  implements Serializable {  // Public Constructors  public  Number  ( );  // Public Instance Methods   1.1  public byte  byteValue  ( );        public abstract double  doubleValue  ( );        public abstract float  floatValue  ( );        public abstract int  intValue  ( );        public abstract long  longValue  ( );  1.1  public short  shortValue  ( );   } 

Subclasses

Byte , Double , Float , Integer , Long , Short , java.math.BigDecimal , java.math.BigInteger , java.util.concurrent.atomic.AtomicInteger , java.util.concurrent.atomic.AtomicLong

Returned By

java.text.ChoiceFormat.parse( ) , java.text.DecimalFormat.parse( ) , java.text.NumberFormat.parse( ) , javax.xml.datatype.Duration.getField( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net