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.
  • Method Details

    • nextDouble

      double nextDouble()
    • forEachRemaining

      default void forEachRemaining(DoubleConsumer action)
      Specified by:
      forEachRemaining in interface PrimitiveIterator<Double, DoubleConsumer>
    • next

      default Double next()
      Description copied from interface: Iterator

      Returns 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
      Specified by:
      next in interface Iterator<Double>
    • forEachRemaining

      default void forEachRemaining(Consumer<? super Double> action)
      Description copied from interface: Iterator
      Hands each remaining element to action, in order.
      Specified by:
      forEachRemaining in interface Iterator<Double>