Package org.apache.qpid.protonj2.types
Class Decimal64
- java.lang.Object
-
- java.lang.Number
-
- org.apache.qpid.protonj2.types.Decimal64
-
- All Implemented Interfaces:
Serializable
public final class Decimal64 extends Number
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Decimal64(long bits)
Decimal64(BigDecimal underlying)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
doubleValue()
boolean
equals(Object o)
float
floatValue()
long
getBits()
int
hashCode()
int
intValue()
long
longValue()
-
Methods inherited from class java.lang.Number
byteValue, shortValue
-
-
-
-
Field Detail
-
SIZE
@Native public static final int SIZE
The number of bits used to represent anDecimal128
value in two's complement binary form.- See Also:
- Constant Field Values
-
BYTES
public static final int BYTES
The number of bytes used to represent aDecimal128
value in two's complement binary form.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Decimal64
public Decimal64(BigDecimal underlying)
-
Decimal64
public Decimal64(long bits)
-
-
Method Detail
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classNumber
-
getBits
public long getBits()
-
-