Package org.jboss.resteasy.util
Class ArrayCharSequence
java.lang.Object
org.jboss.resteasy.util.ArrayCharSequence
- All Implemented Interfaces:
CharSequence
A CharSequence backed by a char[] (no copy on creation)
-
Constructor Summary
ConstructorDescriptionArrayCharSequence
(char[] buff) ArrayCharSequence
(char[] buff, int count) ArrayCharSequence
(char[] buff, int offset, int count) -
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int index) int
length()
subSequence
(int beginIndex, int endIndex) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Constructor Details
-
ArrayCharSequence
public ArrayCharSequence(char[] buff) -
ArrayCharSequence
public ArrayCharSequence(char[] buff, int count) -
ArrayCharSequence
public ArrayCharSequence(char[] buff, int offset, int count)
-
-
Method Details
-
charAt
public char charAt(int index) - Specified by:
charAt
in interfaceCharSequence
-
length
public int length()- Specified by:
length
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-