Interface DoubleIterator

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.PrimitiveIterator

        java.util.PrimitiveIterator.OfDouble, java.util.PrimitiveIterator.OfInt, java.util.PrimitiveIterator.OfLong
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods 
      Modifier and Type Method 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.
      • Methods inherited from interface java.util.Iterator

        hasNext, remove
      • Methods inherited from interface java.util.PrimitiveIterator.OfDouble

        forEachRemaining
    • Method Detail

      • nextDouble

        double nextDouble()
        Returns the next element as a primitive type.
        Specified by:
        nextDouble in interface java.util.PrimitiveIterator.OfDouble
        Returns:
        the next element in the iteration.
        See Also:
        Iterator.next()
      • next

        @Deprecated
        default java.lang.Double next()
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        next in interface java.util.Iterator<java.lang.Double>
        Specified by:
        next in interface java.util.PrimitiveIterator.OfDouble
      • forEachRemaining

        @Deprecated
        default void forEachRemaining​(java.util.function.Consumer<? super java.lang.Double> action)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        forEachRemaining in interface java.util.Iterator<java.lang.Double>
        Specified by:
        forEachRemaining in interface java.util.PrimitiveIterator.OfDouble
      • skip

        default int skip​(int n)
        Skips the given number of elements.

        The effect of this call is exactly the same as that of calling next() for n times (possibly stopping if Iterator.hasNext() becomes false).

        Parameters:
        n - the number of elements to skip.
        Returns:
        the number of elements actually skipped.
        See Also:
        Iterator.next()