Package com.ning.http.util
Class StringCharSequence
java.lang.Object
com.ning.http.util.StringCharSequence
- All Implemented Interfaces:
CharSequence
A CharSequence String wrapper that doesn't copy the char[] (damn new String implementation!!!)
- Author:
- slandelle
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int index) intlength()subSequence(int start, int end) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Field Details
-
length
public final int length
-
-
Constructor Details
-
StringCharSequence
-
-
Method Details
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-