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.
|
void |
forEachRemaining(Consumer<? super Character> action)
Deprecated.
Use specialization
forEachRemaining(CharConsumer) instead |
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 elements@Deprecated void forEachRemaining(@Nonnull Consumer<? super Character> action)
forEachRemaining(CharConsumer)
insteadforEachRemaining
in interface Iterator<Character>
action
- the action to be performed for each elementvoid forEachRemaining(@Nonnull CharConsumer action)
action
- the action to be performed for each element