Package jakarta.json
Interface JsonString
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.json.JsonValue
JsonValue.ValueType
-
-
Field Summary
-
Fields inherited from interface jakarta.json.JsonValue
EMPTY_JSON_ARRAY, EMPTY_JSON_OBJECT, FALSE, NULL, TRUE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(Object obj)Compares the specified object with thisJsonStringfor equality.CharSequencegetChars()Returns the char sequence for the JSON String valueStringgetString()Returns the JSON string value.inthashCode()Returns the hash code value for thisJsonStringobject.-
Methods inherited from interface jakarta.json.JsonValue
asJsonArray, asJsonObject, getValueType, toString
-
-
-
-
Method Detail
-
getString
String getString()
Returns the JSON string value.- Returns:
- a JSON string value
-
getChars
CharSequence getChars()
Returns the char sequence for the JSON String value- Returns:
- a char sequence for the JSON String value
-
equals
boolean equals(Object obj)
Compares the specified object with thisJsonStringfor equality. Returnstrueif and only if the specified object is also aJsonString, and theirgetString()objects are equal.
-
hashCode
int hashCode()
Returns the hash code value for thisJsonStringobject. The hash code of aJsonStringobject is defined to be itsgetString()object's hash code.
-
-