Class CharSequenceWrapper

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.CharSequence

    public class CharSequenceWrapper
    extends java.lang.Object
    implements java.lang.CharSequence, java.io.Serializable
    Wrapper class to adapt CharSequence for use in maps and sets.
    See Also:
    Serialized Form
    • Method Detail

      • get

        public java.lang.CharSequence get()
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • length

        public int length()
        Specified by:
        length in interface java.lang.CharSequence
      • charAt

        public char charAt​(int index)
        Specified by:
        charAt in interface java.lang.CharSequence
      • subSequence

        public java.lang.CharSequence subSequence​(int start,
                                                  int end)
        Specified by:
        subSequence in interface java.lang.CharSequence
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface java.lang.CharSequence
        Overrides:
        toString in class java.lang.Object