Class JsonValueImpl
- java.lang.Object
-
- org.apache.activemq.artemis.json.impl.JsonValueImpl
-
- All Implemented Interfaces:
JsonValue
- Direct Known Subclasses:
JsonArrayImpl,JsonNumberImpl,JsonObjectImpl,JsonStringImpl
public class JsonValueImpl extends java.lang.Object implements 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 Constructor Description JsonValueImpl(javax.json.JsonValue rawValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonArrayasJsonArray()JsonObjectasJsonObject()booleanequals(java.lang.Object obj)javax.json.JsonValuegetRawValue()JsonValue.ValueTypegetValueType()inthashCode()java.lang.StringtoString()JsonValuewrap(javax.json.JsonValue rawValue)
-
-
-
Method Detail
-
wrap
public JsonValue wrap(javax.json.JsonValue rawValue)
-
getRawValue
public javax.json.JsonValue getRawValue()
-
getValueType
public JsonValue.ValueType getValueType()
- Specified by:
getValueTypein interfaceJsonValue
-
asJsonObject
public JsonObject asJsonObject()
- Specified by:
asJsonObjectin interfaceJsonValue
-
asJsonArray
public JsonArray asJsonArray()
- Specified by:
asJsonArrayin interfaceJsonValue
-
toString
public java.lang.String toString()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-