Interface PrimitiveIterator.OfDouble
- All Superinterfaces:
Iterator<Double>, PrimitiveIterator<Double, DoubleConsumer>
- Enclosing interface:
PrimitiveIterator<T,T_CONS>
public static interface PrimitiveIterator.OfDouble
extends PrimitiveIterator<Double, DoubleConsumer>
An iterator of
double values.-
Nested Class Summary
Nested classes/interfaces inherited from interface PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong -
Method Summary
Modifier and TypeMethodDescriptiondefault voidforEachRemaining(Consumer<? super Double> action) Hands each remaining element toaction, in order.default voidforEachRemaining(DoubleConsumer action) default Doublenext()Returns the next object in the iteration, i.e.double
-
Method Details
-
nextDouble
double nextDouble() -
forEachRemaining
- Specified by:
forEachRemainingin interfacePrimitiveIterator<Double, DoubleConsumer>
-
next
Description copied from interface:IteratorReturns the next object in the iteration, i.e. returns the element in front of the iterator and advances the iterator by one position.
Returns
the next object.
Throws
NoSuchElementException: if there are no more elements.
See also
- #hasNext
-
forEachRemaining
-