public class JsonString extends JsonValue
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asString()
Returns this JSON value as String, assuming that this value represents a JSON
string.
|
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one according to the
contract specified in
Object.equals(Object). |
int |
hashCode() |
boolean |
isString()
Detects whether this value represents a JSON string.
|
asArray, asBoolean, asDouble, asFloat, asInt, asLong, asObject, cloneMe, isArray, isBoolean, isFalse, isNull, isNumber, isObject, isTrue, readFrom, readFrom, toString, toString, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, writeTo, writeTopublic boolean isString()
JsonValuepublic java.lang.String asString()
JsonValuepublic boolean equals(java.lang.Object object)
JsonValueObject.equals(Object).
Two JsonValues are considered equal if and only if they represent the same JSON text. As a consequence, two given JsonObjects may be different even though they contain the same set of names with the same values, but in a different order.