|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CharacterIterator
CharacterIterator is used to sequence over a group of characters. The iteration starts at the begin index in the group of character and continues to one index before the end index.
| Field Summary | |
|---|---|
static char |
DONE
A constant which indicates there is no character. |
| Method Summary | |
|---|---|
Object |
clone()
Returns a new CharacterIterator with the same properties. |
char |
current()
Returns the character at the current index. |
char |
first()
Sets the current position to the begin index and returns the character at the begin index. |
int |
getBeginIndex()
Returns the begin index. |
int |
getEndIndex()
Returns the end index. |
int |
getIndex()
Returns the current index. |
char |
last()
Sets the current position to the end index - 1 and returns the character at the current position. |
char |
next()
Increments the current index and returns the character at the new index. |
char |
previous()
Decrements the current index and returns the character at the new index. |
char |
setIndex(int location)
Sets the current index. |
| Field Detail |
|---|
static final char DONE
| Method Detail |
|---|
Object clone()
Cloneablechar current()
char first()
int getBeginIndex()
int getEndIndex()
int getIndex()
char last()
char next()
char previous()
char setIndex(int location)
location - The index the CharacterIterator is set to.
IllegalArgumentException - when the new index is less than the begin index or greater
than the end index
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||