Constructors
| Name | Description |
|---|---|
| StringCharacterIterator(String) | Construct an iterator with an initial index of 0. |
| StringCharacterIterator(String, int) | Construct an iterator with the specified initial index. |
| StringCharacterIterator(String, int, int, int) | Construct an iterator over the given range of the given string, with the index set at the specified position. |
Methods
| Name | Description |
|---|---|
| clone() | Create a copy of this boundary |
| current() | Get the character at the current position (as returned by getIndex()). |
| equals(Object) | Compares the equality of two StringCharacterIterator objects. |
| first() | Set the position to getBeginIndex() and return the character at that position. |
| getBeginIndex() | Return the start index of the text. |
| getEndIndex() | Return the end index of the text. |
| getIndex() | Return the current index. |
| hashCode() | Compute a hashcode for this enumeration |
| last() | Set the position to getEndIndex() and return the character at that position. |
| next() | Increment the iterator's index by one and return the character at the new index. |
| previous() | Decrement the iterator's index by one and return the character at the new index. |
| setIndex(int) | Set the position to specified position in the text and return that character. |