-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.json.JsonValue
JsonValue.ValueType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description boolean
equals(Object obj)
Compares the specified object with thisJsonString
for equality.CharSequence
getChars()
Returns the char sequence for the JSON String valueString
getString()
Returns the JSON string value.int
hashCode()
Returns the hash code value for thisJsonString
object.-
Methods inherited from interface javax.json.JsonValue
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 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.
-
-
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/json/JsonString.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.