final class JsonStringImpl extends java.lang.Object implements JsonString
JsonValue.ValueType| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
value |
| Constructor and Description |
|---|
JsonStringImpl(java.lang.String value) |
| 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.
|
JsonValue.ValueType |
getValueType()
Returns the value type of this JSON value.
|
int |
hashCode()
Returns the hash code value for this
JsonString object. |
java.lang.String |
toString()
Returns JSON text for this JSON value.
|
public java.lang.String getString()
JsonStringgetString in interface JsonStringpublic java.lang.CharSequence getChars()
JsonStringgetChars in interface JsonStringpublic JsonValue.ValueType getValueType()
JsonValuegetValueType in interface JsonValuepublic int hashCode()
JsonStringJsonString object.
The hash code of a JsonString object is defined to be its
JsonString.getString() object's hash code.hashCode in interface JsonStringhashCode in class java.lang.ObjectJsonString objectpublic boolean equals(java.lang.Object obj)
JsonStringJsonString for equality.
Returns true if and only if the specified object is also a
JsonString, and their JsonString.getString() objects are
equal.equals in interface JsonStringequals in class java.lang.Objectobj - the object to be compared for equality with this
JsonStringtrue if the specified object is equal to this
JsonString