java.lang.CharSequence |
Known Indirect Subclasses |
This interface represents an ordered set of characters and defines the methods to probe them.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the character at
index .
| |||||||||||
Returns the number of characters in this sequence.
| |||||||||||
Returns a
CharSequence from the start index (inclusive)
to the end index (exclusive) of this sequence.
| |||||||||||
Returns a string with the same characters in the same order as in this
sequence.
|
Returns the character at index
.
IndexOutOfBoundsException | if index < 0 or index >= length() .
|
---|
Returns the number of characters in this sequence.
Returns a CharSequence
from the start
index (inclusive)
to the end
index (exclusive) of this sequence.
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. |
---|---|
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 |
IndexOutOfBoundsException | if start < 0 , end < 0 , start > end ,
or if start or end are greater than the
length of this sequence.
|
---|
Returns a string with the same characters in the same order as in this sequence.