public abstract class Number4D
extends java.lang.Object
Byte
, Short
, Integer
,
Long
, Float
, and Double
. Also worth mentioning
are the classes in java.math
.
It provides ways to convert numeric objects to any primitive.Constructor and Description |
---|
Number4D()
The basic constructor (often called implicitly).
|
Modifier and Type | Method and Description |
---|---|
byte |
byteValue()
Return the value of this
Number as a byte . |
abstract double |
doubleValue()
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 . |
public abstract int intValue()
Number
as an int
.public abstract long longValue()
Number
as a long
.public abstract double doubleValue()
Number
as a float
.public byte byteValue()
Number
as a byte
.public short shortValue()
Number
as a short
.