| java.lang.CharSequence
All known Subclasses: java.nio.CharBuffer,
CharSequence | public interface CharSequence (Code) | | The CharSequence interface represents an ordered set of characters and the
functions to probe them.
|
Method Summary | |
public char | charAt(int index) Answers the character at the specified index (0-based indexing). | public int | length() Answers the number of characters in the sequence. | public CharSequence | subSequence(int start, int end) Answers a CharSequence from the start index to the
end index of this sequence.
Parameters: start - -- index of the start of the sub-sequence to return Parameters: end - -- index of the end of the sub-sequence to return the sub sequence from start to end throws: IndexOutOfBoundsException - when 1. | public String | toString() |
charAt | public char charAt(int index)(Code) | | Answers the character at the specified index (0-based indexing).
Parameters: index - -of the character to return character indicated by index throws: IndexOutOfBoundsException - when index < 0 orindex >= the length of the CharSequence |
length | public int length()(Code) | | Answers the number of characters in the sequence.
the number of characters in the sequence |
subSequence | public CharSequence subSequence(int start, int end)(Code) | | Answers a CharSequence from the start index to the
end index of this sequence.
Parameters: start - -- index of the start of the sub-sequence to return Parameters: end - -- index of the end of the sub-sequence to return the sub sequence from start to end throws: IndexOutOfBoundsException - when 1. either index is below 02. either index >= this.length() 3. start > end |
toString | public String toString()(Code) | | Answers a String with the same characters and ordering of this
CharSequence
a String based on the CharSequence |
|
|