JsonValue.ValueType
EMPTY_JSON_ARRAY, EMPTY_JSON_OBJECT, FALSE, NULL, TRUE
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares the specified object with this
JsonString for equality. |
java.lang.CharSequence |
getChars()
Returns the char sequence for the JSON String value
|
java.lang.String |
getString()
Returns the JSON string value.
|
int |
hashCode()
Returns the hash code value for this
JsonString object. |
asJsonArray, asJsonObject, getValueType, toString
java.lang.String getString()
java.lang.CharSequence getChars()
boolean equals(java.lang.Object obj)
JsonString
for equality.
Returns true
if and only if the specified object is also a
JsonString
, and their getString()
objects are
equal.equals
in class java.lang.Object
obj
- the object to be compared for equality with this
JsonString
true
if the specified object is equal to this
JsonString
int hashCode()
JsonString
object.
The hash code of a JsonString
object is defined to be its
getString()
object's hash code.hashCode
in class java.lang.Object
JsonString
object