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:
  • Field Details

    • SIZE

      @Native public static final int SIZE
      The number of bits used to represent an Decimal128 value in two's complement binary form.
      See Also:
    • BYTES

      public static final int BYTES
      The number of bytes used to represent a Decimal128 value in two's complement binary form.
      See Also:
  • Constructor Details

    • Decimal128

      public Decimal128(BigDecimal underlying)
    • Decimal128

      public Decimal128(long msb, long lsb)
    • Decimal128

      public Decimal128(byte[] data)
  • Method Details

    • intValue

      public int intValue()
      Specified by:
      intValue in class Number
    • longValue

      public long longValue()
      Specified by:
      longValue in class Number
    • floatValue

      public float floatValue()
      Specified by:
      floatValue in class Number
    • doubleValue

      public double doubleValue()
      Specified by:
      doubleValue in class Number
    • getMostSignificantBits

      public long getMostSignificantBits()
    • getLeastSignificantBits

      public long getLeastSignificantBits()
    • asBytes

      public byte[] asBytes()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object