public interface DoubleIterator extends Iterator<Double>
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.
DoubleCollection.iterator()| Modifier and Type | Method and Description |
|---|---|
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. |
double nextDouble()
double element in the iteration. This is a primitive specialization
of the Iterator.next() method.double element in the iterationNoSuchElementException - if the iteration has no more elementsvoid forEachRemaining(@Nonnull DoubleConsumer action)
action - the action to be performed for each element