Class JsonLongImpl

    • Field Detail

      • value

        private final long value
      • hashCode

        private Integer hashCode
    • Constructor Detail

      • JsonLongImpl

        JsonLongImpl​(long value)
    • Method Detail

      • numberValue

        public 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 BigInteger bigIntegerValue()
        Specified by:
        bigIntegerValue in interface jakarta.json.JsonNumber
      • bigIntegerValueExact

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

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

        public 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 String toString()
        Specified by:
        toString in interface jakarta.json.JsonNumber
        Specified by:
        toString in interface jakarta.json.JsonValue
        Overrides:
        toString in class Object
      • hashCode

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

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