Package javax.json

Interface JsonString

  • All Superinterfaces:

    public interface JsonString
    extends JsonValue
    An immutable JSON string value.

    This is a near-exact copy of the same-titled Java EE 8 Class: javax.json.JsonString
    Commenting has been slightly modified to accompany HiLiting the Code Examples.
    Java Source Code remains identical to the Sun-Oracle & 'GlassFish' Released Distributions.

    Read included License: HERE, and the CDDL+GPL-1.1
    All javax.json.* Code Obtained From: GitHub JavaEE jsonp  Public Archive.

    • Method Detail

      • getString

        java.lang.String getString()
        Returns the JSON string value.
        a JSON string value
      • getChars

        🡅  🡇    
        java.lang.CharSequence getChars()
        Returns the char sequence for the JSON String value
        a char sequence for the JSON String value
      • equals

        🡅  🡇    
        boolean equals​(java.lang.Object obj)
        Compares the specified object with this JsonString for equality. Returns true if and only if the specified object is also a JsonString, and their getString() objects are equal.
        equals in class java.lang.Object
        obj - the object to be compared for equality with this JsonString
        true if the specified object is equal to this JsonString
      • hashCode

        int hashCode()
        Returns the hash code value for this JsonString object. The hash code of a JsonString object is defined to be its getString() object's hash code.
        hashCode in class java.lang.Object
        the hash code value for this JsonString object