| java.lang.Object | |
| ↳ | java.lang.Number |
Known Direct Subclasses
AtomicInteger
,
AtomicLong
,
BigDecimal
,
BigInteger
,
Byte
,
Double
,
Float
,
Integer
,
Long
,
Short
|
The abstract superclass of the classes which represent numeric base types
(that is
Byte
,
Short
,
Integer
,
Long
,
Float
, and
Double
.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Empty default constructor.
|
||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Returns this object's value as a byte.
|
||||||||||
|
|
Returns this object's value as a double.
|
||||||||||
|
|
Returns this object's value as a float.
|
||||||||||
|
|
Returns this object's value as an int.
|
||||||||||
|
|
Returns this object's value as a long.
|
||||||||||
|
|
Returns this object's value as a short.
|
||||||||||
|
[Expand]
Inherited Methods
|
|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
Returns this object's value as a byte. Might involve rounding and/or truncating the value, so it fits into a byte.
Returns this object's value as a double. Might involve rounding.
Returns this object's value as a float. Might involve rounding.
Returns this object's value as an int. Might involve rounding and/or truncating the value, so it fits into an int.
Returns this object's value as a long. Might involve rounding and/or truncating the value, so it fits into a long.
Returns this object's value as a short. Might involve rounding and/or truncating the value, so it fits into a short.