Package javax.json
Interface JsonString
- All Superinterfaces:
JsonValue
An immutable JSON string value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.json.JsonValue
JsonValue.ValueType
-
Field Summary
-
Method Summary
Methods inherited from interface javax.json.JsonValue
getValueType, toString
-
Method Details
-
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
Compares the specified object with thisJsonString
for equality. Returnstrue
if and only if the specified object is also aJsonString
, and theirgetString()
objects are equal. -
hashCode
int hashCode()Returns the hash code value for thisJsonString
object. The hash code of aJsonString
object is defined to be itsgetString()
object's hash code.
-