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 boolean
equals(java.lang.Object obj)
Compares the specified object with thisJsonString
for equality.java.lang.CharSequence
getChars()
Returns the char sequence for the JSON String valuejava.lang.String
getString()
Returns the JSON string value.int
hashCode()
Returns the hash code value for thisJsonString
object.-
Methods inherited from interface jakarta.json.JsonValue
asJsonArray, asJsonObject, getValueType, toString
-
-
-
-
Method Detail
-
getString
java.lang.String getString()
Returns the JSON string value.- Returns:
- a JSON string value
-
getChars
java.lang.CharSequence getChars()
Returns the char sequence for the JSON String value- Returns:
- a char sequence for the JSON String value
-
equals
boolean equals(java.lang.Object obj)
Compares the specified object with thisJsonString
for equality. Returnstrue
if and only if the specified object is also aJsonString
, and theirgetString()
objects are equal.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- the object to be compared for equality with thisJsonString
- Returns:
true
if the specified object is equal to thisJsonString
-
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.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- the hash code value for this
JsonString
object
-
-