|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CharSequence
The CharSequence interface represents an ordered set of characters and the functions to probe them.
| Method Summary | |
|---|---|
char |
charAt(int index)
Returns the character at the specified index, with the first character having index zero. |
int |
length()
Returns the number of characters in the sequence. |
CharSequence |
subSequence(int start,
int end)
Returns a CharSequence from the start index (inclusive) to
the end index (exclusive) of this sequence. |
String |
toString()
Returns a String with the same characters and ordering of this CharSequence |
| Method Detail |
|---|
int length()
char charAt(int index)
index - The index of the character to return
IndexOutOfBoundsException - when index < 0 or
index >= the length of the CharSequence
CharSequence subSequence(int start,
int end)
start index (inclusive) to
the end index (exclusive) of this sequence.
start - The starting offset of the sub-sequence, that is, the
index of the first character that goes into the sub-sequenceend - The ending offset of the sub-sequence, that is, the
index of the first character after those that go into the
sub-sequence
IndexOutOfBoundsException - when 1. either index is below 0
2. either index >= this.length()
3. start > end String toString()
toString in class Object
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||