Package org.glassfish.json
Class JsonNumberImpl.JsonBigDecimalNumber
java.lang.Object
org.glassfish.json.JsonNumberImpl
org.glassfish.json.JsonNumberImpl.JsonBigDecimalNumber
- All Implemented Interfaces:
JsonNumber
,JsonValue
- Enclosing class:
JsonNumberImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.json.JsonValue
JsonValue.ValueType
-
Field Summary
FieldsFields inherited from interface javax.json.JsonValue
EMPTY_JSON_ARRAY, EMPTY_JSON_OBJECT, FALSE, NULL, TRUE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns this JSON number as aBigDecimal
object.Returns this JSON number as aNumber
object.Methods inherited from class org.glassfish.json.JsonNumberImpl
bigIntegerValue, bigIntegerValueExact, doubleValue, equals, getJsonNumber, getJsonNumber, getJsonNumber, getJsonNumber, getJsonNumber, getValueType, hashCode, intValue, intValueExact, isIntegral, longValue, longValueExact, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.json.JsonValue
asJsonArray, asJsonObject
-
Field Details
-
bigDecimal
-
-
Constructor Details
-
JsonBigDecimalNumber
JsonBigDecimalNumber(BigDecimal value)
-
-
Method Details
-
bigDecimalValue
Description copied from interface:JsonNumber
Returns this JSON number as aBigDecimal
object.- Returns:
- a
BigDecimal
representation of the JSON number
-
numberValue
Description copied from interface:JsonNumber
Returns this JSON number as aNumber
object.- Returns:
- a
Number
representation of the JSON number
-