FileDocCategorySizeDatePackage
CharSequence.javaAPI DocAndroid 1.5 API2827Wed May 06 22:41:04 BST 2009java.lang

CharSequence

public interface CharSequence
This interface represents an ordered set of characters and defines the methods to probe them.
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public charcharAt(int index)
Returns the character at the specified index, with the first character having index zero.

param
index the index of the character to return.
return
the requested character.
throws
IndexOutOfBoundsException if {@code index < 0} or {@code index} is greater than the length of this sequence.
since
Android 1.0

public intlength()
Returns the number of characters in this sequence.

return
the number of characters.
since
Android 1.0

public java.lang.CharSequencesubSequence(int start, int end)
Returns a {@code CharSequence} from the {@code start} index (inclusive) to the {@code end} index (exclusive) of this sequence.

param
start the start offset of the sub-sequence. It is inclusive, that is, the index of the first character that is included in the sub-sequence.
param
end the end offset of the sub-sequence. It is exclusive, that is, the index of the first character after those that are included in the sub-sequence
return
the requested sub-sequence.
throws
IndexOutOfBoundsException if {@code start < 0}, {@code end < 0}, {@code start > end}, or if {@code start} or {@code end} are greater than the length of this sequence.
since
Android 1.0

public java.lang.StringtoString()
Returns a string with the same characters in the same order as in this sequence.

return
a string based on this sequence.
since
Android 1.0