Package javax.json

Interface JsonNumber

All Superinterfaces:
JsonValue

public interface JsonNumber extends JsonValue
JsonValue which represents a number. The decimal point is defined as dot '.'.
See Also:
  • Method Details

    • isIntegral

      boolean isIntegral()
    • intValue

      int intValue()
    • intValueExact

      int intValueExact()
    • longValue

      long longValue()
    • longValueExact

      long longValueExact()
    • bigIntegerValue

      BigInteger bigIntegerValue()
    • bigIntegerValueExact

      BigInteger bigIntegerValueExact()
    • doubleValue

      double doubleValue()
    • bigDecimalValue

      BigDecimal bigDecimalValue()
    • numberValue

      default Number numberValue()
      Since:
      1.1
    • toString

      String toString()
      Specified by:
      toString in interface JsonValue
      Overrides:
      toString in class Object
    • equals

      boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      int hashCode()
      Overrides:
      hashCode in class Object