Class JsonStringImpl

  • All Implemented Interfaces:
    java.io.Serializable, javax.json.JsonString, javax.json.JsonValue

    final class JsonStringImpl
    extends java.lang.Object
    implements javax.json.JsonString, java.io.Serializable
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface javax.json.JsonValue

        javax.json.JsonValue.ValueType
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String escape  
      private java.lang.Integer hashCode  
      private java.lang.String value  
      • Fields inherited from interface javax.json.JsonValue

        EMPTY_JSON_ARRAY, EMPTY_JSON_OBJECT, FALSE, NULL, TRUE
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonStringImpl​(java.lang.String value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.CharSequence getChars()  
      java.lang.String getString()  
      javax.json.JsonValue.ValueType getValueType()  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface javax.json.JsonValue

        asJsonArray, asJsonObject
    • Field Detail

      • value

        private final java.lang.String value
      • escape

        private java.lang.String escape
      • hashCode

        private transient java.lang.Integer hashCode
    • Constructor Detail

      • JsonStringImpl

        JsonStringImpl​(java.lang.String value)
    • Method Detail

      • getString

        public java.lang.String getString()
        Specified by:
        getString in interface javax.json.JsonString
      • getChars

        public java.lang.CharSequence getChars()
        Specified by:
        getChars in interface javax.json.JsonString
      • getValueType

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

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

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

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