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
-
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.-
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
-
-
-
-
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
-
-