Package net.sourceforge.plantuml.json
Class JsonString
java.lang.Object
net.sourceforge.plantuml.json.JsonValue
net.sourceforge.plantuml.json.JsonString
- All Implemented Interfaces:
java.io.Serializable
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionjava.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 inObject.equals(Object)
.int
hashCode()
boolean
isString()
Detects whether this value represents a JSON string.Methods inherited from class net.sourceforge.plantuml.json.JsonValue
asArray, asBoolean, asDouble, asFloat, asInt, asLong, asObject, isArray, isBoolean, isFalse, isNull, isNumber, isObject, isTrue, readFrom, readFrom, toString, toString, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, writeTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Method Details
-
isString
public boolean isString()Description copied from class:JsonValue
Detects whether this value represents a JSON string. -
asString
public java.lang.String asString()Description copied from class:JsonValue
Returns this JSON value as String, assuming that this value represents a JSON string. If this is not the case, an exception is thrown. -
hashCode
public int hashCode() -
equals
public boolean equals(java.lang.Object object) Description copied from class:JsonValue
Indicates whether some other object is "equal to" this one according to the contract specified inObject.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.
-