Package org.apache.qpid.protonj2.types
Class Decimal128
java.lang.Object
java.lang.Number
org.apache.qpid.protonj2.types.Decimal128
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDecimal128
(byte[] data) Decimal128
(long msb, long lsb) Decimal128
(BigDecimal underlying) -
Method Summary
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
SIZE
The number of bits used to represent anDecimal128
value in two's complement binary form.- See Also:
-
BYTES
public static final int BYTESThe number of bytes used to represent aDecimal128
value in two's complement binary form.- See Also:
-
-
Constructor Details
-
Decimal128
-
Decimal128
public Decimal128(long msb, long lsb) -
Decimal128
public Decimal128(byte[] data)
-
-
Method Details
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-
getMostSignificantBits
public long getMostSignificantBits() -
getLeastSignificantBits
public long getLeastSignificantBits() -
asBytes
public byte[] asBytes() -
equals
-
hashCode
public int hashCode()
-