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
private static final class JsonNumberImpl.JsonBigDecimalNumber extends JsonNumberImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.json.JsonValue
JsonValue.ValueType
-
-
Field Summary
Fields Modifier and Type Field Description private java.math.BigDecimalbigDecimal-
Fields inherited from interface javax.json.JsonValue
EMPTY_JSON_ARRAY, EMPTY_JSON_OBJECT, FALSE, NULL, TRUE
-
-
Constructor Summary
Constructors Constructor Description JsonBigDecimalNumber(java.math.BigDecimal value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimalbigDecimalValue()Returns this JSON number as aBigDecimalobject.java.lang.NumbernumberValue()Returns this JSON number as aNumberobject.-
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
-
-
-
-
Method Detail
-
bigDecimalValue
public java.math.BigDecimal bigDecimalValue()
Description copied from interface:JsonNumberReturns this JSON number as aBigDecimalobject.- Returns:
- a
BigDecimalrepresentation of the JSON number
-
numberValue
public java.lang.Number numberValue()
Description copied from interface:JsonNumberReturns this JSON number as aNumberobject.- Returns:
- a
Numberrepresentation of the JSON number
-
-