public class CharSequenceSubSequence extends java.lang.Object implements java.lang.CharSequence, CharArrayExternalizable, CharSequenceWithStringHash
Constructor and Description |
---|
CharSequenceSubSequence(java.lang.CharSequence chars) |
CharSequenceSubSequence(java.lang.CharSequence chars,
int start,
int end) |
Modifier and Type | Method and Description |
---|---|
char |
charAt(int index) |
void |
getChars(int start,
int end,
char [] dest,
int destPos)
Copies own character sub-sequence to the given array
|
int |
hashCode() |
int |
length() |
java.lang.CharSequence |
subSequence(int start,
int end) |
java.lang.String |
toString() |
public CharSequenceSubSequence(java.lang.CharSequence chars)
public CharSequenceSubSequence(java.lang.CharSequence 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 void getChars(int start, int end, char [] dest, int destPos)
CharArrayExternalizable
getChars
in interface CharArrayExternalizable
start
- the index where to start taking chars from in this sequenceend
- the index where to end taking chars in this sequencedest
- the array to put characters intodestPos
- the index where to put the characters in the dest arraypublic int hashCode()
hashCode
in interface CharSequenceWithStringHash
hashCode
in class java.lang.Object