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:
- RFC-4627 JSON Specification
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.json.JsonValue
JsonValue.ValueType
-
-
Field Summary
-
Fields inherited from interface javax.json.JsonValue
EMPTY_JSON_ARRAY, EMPTY_JSON_OBJECT, FALSE, NULL, TRUE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.math.BigDecimal
bigDecimalValue()
java.math.BigInteger
bigIntegerValue()
java.math.BigInteger
bigIntegerValueExact()
double
doubleValue()
boolean
equals(java.lang.Object obj)
int
hashCode()
int
intValue()
int
intValueExact()
boolean
isIntegral()
long
longValue()
long
longValueExact()
default java.lang.Number
numberValue()
java.lang.String
toString()
-
Methods inherited from interface javax.json.JsonValue
asJsonArray, asJsonObject, getValueType
-
-
-
-
Method Detail
-
isIntegral
boolean isIntegral()
-
intValue
int intValue()
-
intValueExact
int intValueExact()
-
longValue
long longValue()
-
longValueExact
long longValueExact()
-
bigIntegerValue
java.math.BigInteger bigIntegerValue()
-
bigIntegerValueExact
java.math.BigInteger bigIntegerValueExact()
-
doubleValue
double doubleValue()
-
bigDecimalValue
java.math.BigDecimal bigDecimalValue()
-
numberValue
default java.lang.Number numberValue()
- Since:
- 1.1
-
toString
java.lang.String toString()
-
equals
boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-