|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CharSequence
CharSequence is an interface that provides a read-only access to a sequence of characters.
Method Summary | |
---|---|
char |
charAt(int index)
charAt returns the character at given position. |
int |
length()
length the length of this sequence. |
CharSequence |
subSequence(int start,
int end)
subSequence creates a subsequence of this sequence. |
String |
toString()
toString returns a string with the characters from this sequence. |
Method Detail |
---|
int length()
char charAt(int index)
index
- the position
IndexOutOfBoundsException
- if index<0 || index>=length()CharSequence subSequence(int start, int end)
start
- the start position.end
- the end position.
IndexOutOfBoundsException
- if start<0 || endString toString()
ensures
(result.length() == length() && for all i: 0<=i && iresult.charAt(i) == charAt(i));
toString
in class Object
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |