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.BigDecimalbigDecimalValue()java.math.BigIntegerbigIntegerValue()java.math.BigIntegerbigIntegerValueExact()doubledoubleValue()booleanequals(java.lang.Object obj)inthashCode()intintValue()intintValueExact()booleanisIntegral()longlongValue()longlongValueExact()default java.lang.NumbernumberValue()java.lang.StringtoString()-
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:
equalsin classjava.lang.Object
-
hashCode
int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-