E
- the type of elements returned by this iteratorpublic interface ObjIterator<E> extends Iterator<E>
Iterator
for the symmetry with primitive specializations.
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.
ObjCollection.iterator()
Modifier and Type | Method and Description |
---|---|
void |
forEachRemaining(Consumer<? super E> action)
Performs the given action for each remaining element until all elements
have been processed or the action throws an exception.
|
void forEachRemaining(@Nonnull Consumer<? super E> action)
action
- the action to be performed for each element