java.lang
public abstract class Number extends Object implements Serializable
Since: 1.0
UNKNOWN: updated to 1.4
Constructor Summary | |
---|---|
Number()
The basic constructor (often called implicitly). |
Method Summary | |
---|---|
byte | byteValue()
Return the value of this Number as a byte .
|
abstract double | doubleValue()
Return the value of this Number as a float .
|
abstract float | floatValue()
Return the value of this Number as a float .
|
abstract int | intValue()
Return the value of this Number as an int .
|
abstract long | longValue()
Return the value of this Number as a long .
|
short | shortValue()
Return the value of this Number as a short .
|
Number
as a byte
.
Returns: the byte value
Since: 1.1
Number
as a float
.
Returns: the double value
Number
as a float
.
Returns: the float value
Number
as an int
.
Returns: the int value
Number
as a long
.
Returns: the long value
Number
as a short
.
Returns: the short value
Since: 1.1