Package org.apache.qpid.protonj2.types
Class Decimal128
- java.lang.Object
-
- java.lang.Number
-
- org.apache.qpid.protonj2.types.Decimal128
-
- All Implemented Interfaces:
Serializable
public final class Decimal128 extends Number
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Decimal128(byte[] data)Decimal128(long msb, long lsb)Decimal128(BigDecimal underlying)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]asBytes()doubledoubleValue()booleanequals(Object o)floatfloatValue()longgetLeastSignificantBits()longgetMostSignificantBits()inthashCode()intintValue()longlongValue()-
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 anDecimal128value in two's complement binary form.- See Also:
- Constant Field Values
-
BYTES
public static final int BYTES
The number of bytes used to represent aDecimal128value in two's complement binary form.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Decimal128
public Decimal128(BigDecimal underlying)
-
Decimal128
public Decimal128(long msb, long lsb)
-
Decimal128
public Decimal128(byte[] data)
-
-
Method Detail
-
floatValue
public float floatValue()
- Specified by:
floatValuein classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein classNumber
-
getMostSignificantBits
public long getMostSignificantBits()
-
getLeastSignificantBits
public long getLeastSignificantBits()
-
asBytes
public byte[] asBytes()
-
-