|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CharIterator
This is the interface for an Iterator of primitive char
values.
The intention of CharIterator is to allow faster processing of large
streams of characters by using the primitive type char and by
making calls of hasNext() unnecessary.
| Field Summary | |
|---|---|
static char |
END_OF_ITERATOR
This is a character that is illegal according to the unicode specification. |
| Method Summary | |
|---|---|
boolean |
hasNext()
This method determines whether there is a next char
available or the end of this iterator has been reached. |
char |
next()
This method returns the next character to iterate or END_OF_ITERATOR if the end of this iterator has been reached. |
| Field Detail |
|---|
static final char END_OF_ITERATOR
| Method Detail |
|---|
boolean hasNext()
next char
available or the end of this iterator has been reached.
true if there is at least one next
char available, or false if the end of this iterator
has been reached and further calls of next() will return
END_OF_ITERATOR.next(),
Iterator.hasNext()char next()
END_OF_ITERATOR if the end of this iterator has been reached. If
END_OF_ITERATOR is returned further calls will always return
END_OF_ITERATOR.
END_OF_ITERATOR if the end of this
iterator has been reached.Iterator.next()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||