public abstract class Number extends Object implements Serializable
Byte, Short, Integer, Long,
Float, and Double.| Constructor and Description |
|---|
Number()
Empty default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
byteValue()
Returns this object's value as a byte.
|
abstract double |
doubleValue()
Returns this object's value as a double.
|
abstract float |
floatValue()
Returns this object's value as a float.
|
abstract int |
intValue()
Returns this object's value as an int.
|
abstract long |
longValue()
Returns this object's value as a long.
|
short |
shortValue()
Returns this object's value as a short.
|
public byte byteValue()
public abstract double doubleValue()
public abstract float floatValue()
public abstract int intValue()
public abstract long longValue()
public short shortValue()