public interface DoubleIterator
extends java.util.PrimitiveIterator.OfDouble
Iterator; provides an additional method to avoid
(un)boxing, and the possibility to skip elements.Iterator| Modifier and Type | Method and Description |
|---|---|
default void |
forEachRemaining(java.util.function.Consumer<? super java.lang.Double> action)
Deprecated.
Please use the corresponding type-specific method instead.
|
default java.lang.Double |
next()
Deprecated.
Please use the corresponding type-specific method instead.
|
double |
nextDouble()
Returns the next element as a primitive type.
|
default int |
skip(int n)
Skips the given number of elements.
|
double nextDouble()
nextDouble in interface java.util.PrimitiveIterator.OfDoubleIterator.next()@Deprecated default java.lang.Double next()
next in interface java.util.Iterator<java.lang.Double>next in interface java.util.PrimitiveIterator.OfDouble@Deprecated default void forEachRemaining(java.util.function.Consumer<? super java.lang.Double> action)
forEachRemaining in interface java.util.Iterator<java.lang.Double>forEachRemaining in interface java.util.PrimitiveIterator.OfDoubledefault int skip(int n)
The effect of this call is exactly the same as that of calling
next() for n times (possibly stopping if Iterator.hasNext()
becomes false).
n - the number of elements to skip.Iterator.next()