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.BigDecimal
bigDecimal
-
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.BigDecimal
bigDecimalValue()
Returns this JSON number as aBigDecimal
object.java.lang.Number
numberValue()
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
-
-
-
-
Method Detail
-
bigDecimalValue
public java.math.BigDecimal bigDecimalValue()
Description copied from interface:JsonNumber
Returns this JSON number as aBigDecimal
object.- Returns:
- a
BigDecimal
representation of the JSON number
-
numberValue
public java.lang.Number numberValue()
Description copied from interface:JsonNumber
Returns this JSON number as aNumber
object.- Returns:
- a
Number
representation of the JSON number
-
-