public interface INumber extends Serializable
Number - but an interface and not an
abstract class.| Modifier and Type | Method and Description |
|---|---|
default byte |
byteValue()
Returns the value of the specified number as a
byte, which may
involve rounding or truncation. |
double |
doubleValue()
Returns the value of the specified number as a
double, which may
involve rounding. |
float |
floatValue()
Returns the value of the specified number as a
float, which may
involve rounding. |
int |
intValue()
Returns the value of the specified number as an
int, which may
involve rounding or truncation. |
long |
longValue()
Returns the value of the specified number as a
long, which may
involve rounding or truncation. |
default short |
shortValue()
Returns the value of the specified number as a
short, which may
involve rounding or truncation. |
int intValue()
int, which may
involve rounding or truncation.int.long longValue()
long, which may
involve rounding or truncation.long.float floatValue()
float, which may
involve rounding.float.double doubleValue()
double, which may
involve rounding.double.default byte byteValue()
byte, which may
involve rounding or truncation.
This implementation returns the result of intValue() cast to a
byte.
byte.default short shortValue()
short, which may
involve rounding or truncation.
This implementation returns the result of intValue() cast to a
short.
short.Copyright © 2014–2020 Philip Helger. All rights reserved.