is new.
java.lang.Objectjava.lang.Number
AtomicInteger
,
AtomicLong
,
BigDecimal
,
BigInteger
,
Byte
,
Double
,
Float
,
Integer
,
Long
,
Short
public abstract class Number
The abstract class Number is the superclass of classes BigDecimal, BigInteger, Byte, Double, Float, Integer, Long, and Short.
Subclasses of Number must provide methods to convert the represented numeric value to byte, double, float, int, long, and short.
| Constructor Summary | |
|---|---|
|
Number
() |
|
| Method Summary | |
|---|---|
| byte |
byteValue
() Returns the value of the specified number as a byte. |
| abstract double |
doubleValue
() Returns the value of the specified number as a double. |
| abstract float |
floatValue
() Returns the value of the specified number as a float. |
| abstract int |
intValue
() Returns the value of the specified number as an int. |
| abstract long |
longValue
() Returns the value of the specified number as a long. |
| short |
shortValue
() Returns the value of the specified number as a short. |
| Methods inherited from class java.lang. Object |
|---|
| clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| Constructor Detail |
|---|
public Number()
| Method Detail |
|---|
public abstract int intValue()
public abstract long longValue()
public abstract float floatValue()
public abstract double doubleValue()
public byte byteValue()
public short shortValue()