com.koloboke.collect
Interface ObjIterator<E>

Type Parameters:
E - the type of elements returned by this iterator
All Superinterfaces:
Iterator<E>

public interface ObjIterator<E>
extends Iterator<E>

Extends 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.

See Also:
ObjCollection.iterator()

Method Summary
 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.
 
Methods inherited from interface Iterator
hasNext, next, remove
 

Method Detail

forEachRemaining

void forEachRemaining(@Nonnull
                      Consumer<? super E> action)
Performs the given action for each remaining element until all elements have been processed or the action throws an exception. Actions are performed in the order of iteration, if that order is specified. Exceptions thrown by the action are relayed to the caller.

Parameters:
action - the action to be performed for each element