java.lang
public
abstract
class
java.lang.Number
Number is the abstract superclass of the classes which represent numeric base
types (i.e. all but Character, Boolean, and Void).
Known Direct Subclasses
AtomicInteger |
An int value that may be updated atomically. |
AtomicLong |
A long value that may be updated atomically. |
BigDecimal |
Class which represents immutable arbritary precision decimal numbers. |
BigInteger |
Class which represents immutable arbitrary precision integer numbers. |
Byte |
Byte is the wrapper for the primitive type byte . |
Double |
Double is the wrapper for the primitive type double . |
Float |
Float is the wrapper for the primitive type float . |
Integer |
Integer is the wrapper for the primitive type int . |
Long |
Long is the wrapper for the primitive type long . |
Short |
Short is the wrapper for the primitive type short . |
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
Number()
Number constructor. Included for spec compatability.
Public Methods
public
byte
byteValue()
Returns the byte value which the receiver represents
Returns
- byte the value of the receiver.
public
abstract
double
doubleValue()
Returns the double value which the receiver represents
Returns
- double the value of the receiver.
public
abstract
float
floatValue()
Returns the float value which the receiver represents
Returns
- float the value of the receiver.
public
abstract
int
intValue()
Returns the int value which the receiver represents
Returns
- int the value of the receiver.
public
abstract
long
longValue()
Returns the long value which the receiver represents
Returns
- long the value of the receiver.
public
short
shortValue()
Returns the short value which the receiver represents
Returns
- short the value of the receiver.