Class JsonNumberImpl
java.lang.Object
org.apache.activemq.artemis.json.impl.JsonValueImpl
org.apache.activemq.artemis.json.impl.JsonNumberImpl
- All Implemented Interfaces:
JsonNumber,JsonValue
-
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 -
Method Summary
Modifier and TypeMethodDescriptiondoublejavax.json.JsonNumberintintValue()intbooleanlonglongMethods inherited from class org.apache.activemq.artemis.json.impl.JsonValueImpl
asJsonArray, asJsonObject, equals, getRawValue, getValueType, hashCode, toString, wrapMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.json.JsonNumber
equals, hashCode, toStringMethods inherited from interface org.apache.activemq.artemis.json.JsonValue
asJsonArray, asJsonObject, getValueType
-
Constructor Details
-
JsonNumberImpl
public JsonNumberImpl(javax.json.JsonNumber rawNumber)
-
-
Method Details
-
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
- Specified by:
bigIntegerValuein interfaceJsonNumber
-
bigIntegerValueExact
- Specified by:
bigIntegerValueExactin interfaceJsonNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein interfaceJsonNumber
-
bigDecimalValue
- Specified by:
bigDecimalValuein interfaceJsonNumber
-
numberValue
- Specified by:
numberValuein interfaceJsonNumber
-