Class JsonDoubleImpl

  • All Implemented Interfaces:
    jakarta.json.JsonNumber, jakarta.json.JsonValue, java.io.Serializable

    final class JsonDoubleImpl
    extends java.lang.Object
    implements jakarta.json.JsonNumber, java.io.Serializable
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface jakarta.json.JsonValue

        jakarta.json.JsonValue.ValueType
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Integer hashCode  
      private double value  
      • Fields inherited from interface jakarta.json.JsonValue

        EMPTY_JSON_ARRAY, EMPTY_JSON_OBJECT, FALSE, NULL, TRUE
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonDoubleImpl​(double value)  
    • Field Detail

      • value

        private final double value
      • hashCode

        private java.lang.Integer hashCode
    • Constructor Detail

      • JsonDoubleImpl

        JsonDoubleImpl​(double value)
    • Method Detail

      • numberValue

        public java.lang.Number numberValue()
        Specified by:
        numberValue in interface jakarta.json.JsonNumber
      • isIntegral

        public boolean isIntegral()
        Specified by:
        isIntegral in interface jakarta.json.JsonNumber
      • intValue

        public int intValue()
        Specified by:
        intValue in interface jakarta.json.JsonNumber
      • intValueExact

        public int intValueExact()
        Specified by:
        intValueExact in interface jakarta.json.JsonNumber
      • longValue

        public long longValue()
        Specified by:
        longValue in interface jakarta.json.JsonNumber
      • longValueExact

        public long longValueExact()
        Specified by:
        longValueExact in interface jakarta.json.JsonNumber
      • bigIntegerValue

        public java.math.BigInteger bigIntegerValue()
        Specified by:
        bigIntegerValue in interface jakarta.json.JsonNumber
      • bigIntegerValueExact

        public java.math.BigInteger bigIntegerValueExact()
        Specified by:
        bigIntegerValueExact in interface jakarta.json.JsonNumber
      • doubleValue

        public double doubleValue()
        Specified by:
        doubleValue in interface jakarta.json.JsonNumber
      • bigDecimalValue

        public java.math.BigDecimal bigDecimalValue()
        Specified by:
        bigDecimalValue in interface jakarta.json.JsonNumber
      • getValueType

        public jakarta.json.JsonValue.ValueType getValueType()
        Specified by:
        getValueType in interface jakarta.json.JsonValue
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface jakarta.json.JsonNumber
        Specified by:
        toString in interface jakarta.json.JsonValue
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface jakarta.json.JsonNumber
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface jakarta.json.JsonNumber
        Overrides:
        equals in class java.lang.Object
      • checkFractionalPart

        private void checkFractionalPart()