com.koloboke.collect
Interface DoubleIterator

All Superinterfaces:
Iterator<Double>

public interface DoubleIterator
extends Iterator<Double>

Primitive specialization of Iterator<Double>.

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:
DoubleCollection.iterator()

Method Summary
 void forEachRemaining(DoubleConsumer action)
          Performs the given action for each remaining element until all elements have been processed or the action throws an exception.
 double nextDouble()
          Returns the next double element in the iteration.
 
Methods inherited from interface Iterator
hasNext, next, remove
 

Method Detail

nextDouble

double nextDouble()
Returns the next double element in the iteration. This is a primitive specialization of the Iterator.next() method.

Returns:
the next double element in the iteration
Throws:
NoSuchElementException - if the iteration has no more elements

forEachRemaining

void forEachRemaining(@Nonnull
                      DoubleConsumer 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