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 BigDecimal
bigDecimalValue()
BigInteger
bigIntegerValue()
BigInteger
bigIntegerValueExact()
double
doubleValue()
boolean
equals(Object obj)
int
hashCode()
int
intValue()
int
intValueExact()
boolean
isIntegral()
long
longValue()
long
longValueExact()
default Number
numberValue()
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
BigInteger bigIntegerValue()
-
bigIntegerValueExact
BigInteger bigIntegerValueExact()
-
doubleValue
double doubleValue()
-
bigDecimalValue
BigDecimal bigDecimalValue()
-
numberValue
default Number numberValue()
- Since:
- 1.1
-
toString
String toString()
-
-