public interface CharIterator extends Iterator<Character>
Iterator<Character>.
See the comparison of iteration ways in the library.
Iterators of updatable and immutable collections don't support Iterator.remove()
operation. More about mutability profiles.
CharCollection.iterator()| Modifier and Type | Method and Description |
|---|---|
void |
forEachRemaining(CharConsumer action)
Performs the given action for each remaining element until all elements
have been processed or the action throws an exception.
|
char |
nextChar()
Returns the next
char element in the iteration. |
char nextChar()
char element in the iteration. This is a primitive specialization
of the Iterator.next() method.char element in the iterationNoSuchElementException - if the iteration has no more elementsvoid forEachRemaining(@Nonnull CharConsumer action)
action - the action to be performed for each element