public class CharArrayCharSequence extends java.lang.Object implements CharSequenceBackedByArray, CharSequenceWithStringHash
Modifier and Type | Field and Description |
---|---|
protected char[] |
myChars |
protected int |
myEnd |
protected int |
myStart |
Constructor and Description |
---|
CharArrayCharSequence(char... chars) |
CharArrayCharSequence(char [] chars,
int start,
int end) |
Modifier and Type | Method and Description |
---|---|
char |
charAt(int index) |
boolean |
equals(java.lang.Object anObject) |
char [] |
getChars() |
void |
getChars(char [] dst,
int dstOffset) |
int |
hashCode() |
int |
length() |
int |
readCharsTo(int start,
char[] cbuf,
int off,
int len)
See
Reader.read(char[], int, int) ; |
java.lang.CharSequence |
subSequence(int start,
int end) |
java.lang.String |
toString() |
protected final char[] myChars
protected final int myStart
protected final int myEnd
public CharArrayCharSequence(char... chars)
public CharArrayCharSequence(char [] chars, int start, int end)
public final int length()
length
in interface java.lang.CharSequence
public final char charAt(int index)
charAt
in interface java.lang.CharSequence
public java.lang.CharSequence subSequence(int start, int end)
subSequence
in interface java.lang.CharSequence
public java.lang.String toString()
toString
in interface java.lang.CharSequence
toString
in class java.lang.Object
public char [] getChars()
getChars
in interface CharSequenceBackedByArray
public void getChars(char [] dst, int dstOffset)
getChars
in interface CharSequenceBackedByArray
public boolean equals(java.lang.Object anObject)
equals
in class java.lang.Object
public int readCharsTo(int start, char[] cbuf, int off, int len)
Reader.read(char[], int, int)
;public int hashCode()
hashCode
in interface CharSequenceWithStringHash
hashCode
in class java.lang.Object