java.lang.Object
|
+--java.lang.Number
The abstract class
Number is the superclass of
classes 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.
Byte,
Double,
Float,
Integer,
Long,
Short, Serialized Form
| Constructor Summary | |
Number
copy-> new Number()copy-> <Number var> = new Number(); |
|
| Method Summary | |
byte |
byteValue()
copy-> .byteValue()copy-> <byte var>=<Number>.byteValue();
|
abstract double |
doubleValue()
copy-> .doubleValue()copy-> <double var>=<Number>.doubleValue();
|
abstract float |
floatValue()
copy-> .floatValue()copy-> <float var>=<Number>.floatValue();
|
abstract int |
intValue()
copy-> .intValue()copy-> <int var>=<Number>.intValue();
|
abstract long |
longValue()
copy-> .longValue()copy-> <long var>=<Number>.longValue();
|
short |
shortValue()
copy-> .shortValue()copy-> <short var>=<Number>.shortValue();
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |