Class JsonLongImpl

java.lang.Object
org.apache.johnzon.core.JsonLongImpl
All Implemented Interfaces:
jakarta.json.JsonNumber, jakarta.json.JsonValue, Serializable

public final class JsonLongImpl extends Object implements jakarta.json.JsonNumber, Serializable
See Also:
  • Field Details

    • value

      private final long value
    • hashCode

      private Integer hashCode
  • Constructor Details

    • JsonLongImpl

      JsonLongImpl(long value)
  • Method Details

    • 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