Package org.apache.qpid.protonj2.types
Class Decimal128
- java.lang.Object
-
- java.lang.Number
-
- org.apache.qpid.protonj2.types.Decimal128
-
- All Implemented Interfaces:
java.io.Serializable
public final class Decimal128 extends java.lang.Number
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Decimal128(byte[] data)
Decimal128(long msb, long lsb)
Decimal128(java.math.BigDecimal underlying)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
asBytes()
double
doubleValue()
boolean
equals(java.lang.Object o)
float
floatValue()
long
getLeastSignificantBits()
long
getMostSignificantBits()
int
hashCode()
int
intValue()
long
longValue()
-
-
-
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
-
-
Method Detail
-
intValue
public int intValue()
- Specified by:
intValue
in classjava.lang.Number
-
longValue
public long longValue()
- Specified by:
longValue
in classjava.lang.Number
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classjava.lang.Number
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classjava.lang.Number
-
getMostSignificantBits
public long getMostSignificantBits()
-
getLeastSignificantBits
public long getLeastSignificantBits()
-
asBytes
public byte[] asBytes()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-