Fields
| Name | Description |
|---|---|
| DONE | Constant that is returned when the iterator has reached either the end or the beginning of the text. |
Methods
| Name | Description |
|---|---|
| clone() | Create a copy of this iterator |
| current() | Get the character at the current position (as returned by getIndex()). |
| 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. |
| last() | Set the position to getEndIndex()-1, 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 the specified position in the text and return that character. |