Class JsonNumberImpl
- java.lang.Object
-
- org.apache.activemq.artemis.json.impl.JsonValueImpl
-
- org.apache.activemq.artemis.json.impl.JsonNumberImpl
-
- All Implemented Interfaces:
JsonNumber,JsonValue
public class JsonNumberImpl extends JsonValueImpl implements JsonNumber
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.activemq.artemis.json.JsonValue
JsonValue.ValueType
-
-
Field Summary
-
Fields inherited from interface org.apache.activemq.artemis.json.JsonValue
EMPTY_JSON_ARRAY, EMPTY_JSON_OBJECT, FALSE, NULL, TRUE
-
-
Constructor Summary
Constructors Constructor Description JsonNumberImpl(javax.json.JsonNumber rawNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimalbigDecimalValue()java.math.BigIntegerbigIntegerValue()java.math.BigIntegerbigIntegerValueExact()doubledoubleValue()javax.json.JsonNumbergetRawNumber()intintValue()intintValueExact()booleanisIntegral()longlongValue()longlongValueExact()java.lang.NumbernumberValue()-
Methods inherited from class org.apache.activemq.artemis.json.impl.JsonValueImpl
asJsonArray, asJsonObject, equals, getRawValue, getValueType, hashCode, toString, wrap
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.json.JsonNumber
equals, hashCode, toString
-
Methods inherited from interface org.apache.activemq.artemis.json.JsonValue
asJsonArray, asJsonObject, getValueType
-
-
-
-
Method Detail
-
getRawNumber
public javax.json.JsonNumber getRawNumber()
-
isIntegral
public boolean isIntegral()
- Specified by:
isIntegralin interfaceJsonNumber
-
intValue
public int intValue()
- Specified by:
intValuein interfaceJsonNumber
-
intValueExact
public int intValueExact()
- Specified by:
intValueExactin interfaceJsonNumber
-
longValue
public long longValue()
- Specified by:
longValuein interfaceJsonNumber
-
longValueExact
public long longValueExact()
- Specified by:
longValueExactin interfaceJsonNumber
-
bigIntegerValue
public java.math.BigInteger bigIntegerValue()
- Specified by:
bigIntegerValuein interfaceJsonNumber
-
bigIntegerValueExact
public java.math.BigInteger bigIntegerValueExact()
- Specified by:
bigIntegerValueExactin interfaceJsonNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein interfaceJsonNumber
-
bigDecimalValue
public java.math.BigDecimal bigDecimalValue()
- Specified by:
bigDecimalValuein interfaceJsonNumber
-
numberValue
public java.lang.Number numberValue()
- Specified by:
numberValuein interfaceJsonNumber
-
-