public interface CharIterator
Iterator
of primitive char values. CharIterator
is to allow faster processing of large streams of characters by using
the primitive type char
and by making calls of hasNext()
unnecessary.Modifier and Type | Field and Description |
---|---|
static char |
END_OF_ITERATOR
This is a character that is illegal according to the unicode specification.
|
Modifier and Type | Method and Description |
---|---|
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. |
static final char END_OF_ITERATOR
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()
Copyright © 2001–2014 mmm-Team. All rights reserved.