|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
public abstract class Number
Number super class of classes that impelement number, i.e., Byte, Short, Integer, Double, Long, BigInteger, etc.
Constructor Summary | |
---|---|
Number()
Constructor for a number, needs to be called by sub-class' constructor. |
Method Summary | |
---|---|
byte |
byteValue()
byteValue returns this number as a byte, may involve rounding or truncation. |
abstract double |
doubleValue()
doubleValue returns this number as a double, may involve rounding or truncation. |
abstract float |
floatValue()
floatValue returns this number as a float, may involve rounding or truncation. |
abstract int |
intValue()
intValue returns this number as an int, may involve rounding or truncation. |
abstract long |
longValue()
longValue returns this number as a long, may involve rounding or truncation. |
short |
shortValue()
shortValue returns this number as a short, may involve rounding or truncation. |
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()
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |