Class JsonStringImpl

  • All Implemented Interfaces:
    jakarta.json.JsonString, jakarta.json.JsonValue, Serializable

    final class JsonStringImpl
    extends Object
    implements jakarta.json.JsonString, Serializable
    • Field Detail

      • value

        private final String value
      • escape

        private String escape
      • hashCode

        private transient Integer hashCode
    • Constructor Detail

      • JsonStringImpl

        JsonStringImpl​(String value)
    • Method Detail

      • getString

        public String getString()
        Specified by:
        getString in interface jakarta.json.JsonString
      • getChars

        public CharSequence getChars()
        Specified by:
        getChars in interface jakarta.json.JsonString
      • getValueType

        public jakarta.json.JsonValue.ValueType getValueType()
        Specified by:
        getValueType in interface jakarta.json.JsonValue
      • toString

        public String toString()
        Specified by:
        toString in interface jakarta.json.JsonValue
        Overrides:
        toString in class Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface jakarta.json.JsonString
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface jakarta.json.JsonString
        Overrides:
        equals in class Object