public interface DoubleIterator extends Iterator<Double>, PrimitiveIterator.OfDouble
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()PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong| Modifier and Type | Method and Description |
|---|---|
void |
forEachRemaining(Consumer<? super Double> action)
Deprecated.
Use specialization
forEachRemaining(DoubleConsumer) instead |
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. |
nextdouble nextDouble()
double element in the iteration. This is a primitive specialization
of the Iterator.next() method.nextDouble in interface PrimitiveIterator.OfDoubledouble element in the iterationNoSuchElementException - if the iteration has no more elements@Deprecated void forEachRemaining(@Nonnull Consumer<? super Double> action)
forEachRemaining(DoubleConsumer) insteadforEachRemaining in interface Iterator<Double>forEachRemaining in interface PrimitiveIterator.OfDoubleaction - the action to be performed for each elementvoid forEachRemaining(@Nonnull DoubleConsumer action)
forEachRemaining in interface PrimitiveIterator<Double,DoubleConsumer>forEachRemaining in interface PrimitiveIterator.OfDoubleaction - the action to be performed for each element