|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Number
Safe: 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
.
java.lang.Byte
,
java.lang.Double
,
java.lang.Float
,
java.lang.Integer
,
java.lang.Long
,
java.lang.Short
,
Serialized FormField Summary | |
private static long |
serialVersionUID
use serialVersionUID from JDK 1.0.2 for interoperability |
Constructor Summary | |
Number()
Enabled: |
Method Summary | |
byte |
byteValue()
Enabled: Returns the value of the specified number as a byte . |
abstract double |
doubleValue()
Enabled: Returns the value of the specified number as a double . |
abstract float |
floatValue()
Enabled: Returns the value of the specified number as a float . |
abstract int |
intValue()
Enabled: Returns the value of the specified number as an int . |
abstract long |
longValue()
Enabled: Returns the value of the specified number as a long . |
short |
shortValue()
Enabled: 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 |
Field Detail |
private static final long serialVersionUID
Constructor Detail |
public Number()
Method Detail |
public abstract int intValue()
int
.
This may involve rounding or truncation.
int
.public abstract long longValue()
long
.
This may involve rounding or truncation.
long
.public abstract float floatValue()
float
.
This may involve rounding.
float
.public abstract double doubleValue()
double
.
This may involve rounding.
double
.public byte byteValue()
byte
.
This may involve rounding or truncation.
byte
.public short shortValue()
short
.
This may involve rounding or truncation.
short
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |