Class Decimal64

  • All Implemented Interfaces:
    java.io.Serializable

    public final class Decimal64
    extends java.lang.Number
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int BYTES
      The number of bytes used to represent a Decimal128 value in two's complement binary form.
      static int SIZE
      The number of bits used to represent an Decimal128 value in two's complement binary form.
    • Constructor Summary

      Constructors 
      Constructor Description
      Decimal64​(long bits)  
      Decimal64​(java.math.BigDecimal underlying)  
    • Field Detail

      • 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:
        Constant Field Values
      • BYTES

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

      • Decimal64

        public Decimal64​(java.math.BigDecimal underlying)
      • Decimal64

        public Decimal64​(long bits)
    • Method Detail

      • intValue

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

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

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

        public double doubleValue()
        Specified by:
        doubleValue in class java.lang.Number
      • getBits

        public long getBits()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object