Class DoubleIterators.UnmodifiableIterator

java.lang.Object
it.unimi.dsi.fastutil.doubles.DoubleIterators.UnmodifiableIterator
All Implemented Interfaces:
DoubleIterator, java.util.Iterator<java.lang.Double>, java.util.PrimitiveIterator<java.lang.Double,​java.util.function.DoubleConsumer>, java.util.PrimitiveIterator.OfDouble
Enclosing class:
DoubleIterators

public static class DoubleIterators.UnmodifiableIterator
extends java.lang.Object
implements DoubleIterator
An unmodifiable wrapper class for iterators.
  • Nested Class Summary

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

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

    Constructors
    Constructor Description
    UnmodifiableIterator​(DoubleIterator i)  
  • Method Summary

    Modifier and Type Method Description
    void forEachRemaining​(java.util.function.Consumer<? super java.lang.Double> action)
    Deprecated.
    void forEachRemaining​(java.util.function.DoubleConsumer action)  
    boolean hasNext()  
    double nextDouble()
    Returns the next element as a primitive type.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleIterator

    forEachRemaining, next, skip

    Methods inherited from interface java.util.Iterator

    remove
  • Constructor Details

    • UnmodifiableIterator

      public UnmodifiableIterator​(DoubleIterator i)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface java.util.Iterator<java.lang.Double>
    • nextDouble

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

      public void forEachRemaining​(java.util.function.DoubleConsumer action)
      Specified by:
      forEachRemaining in interface java.util.PrimitiveIterator<java.lang.Double,​java.util.function.DoubleConsumer>
      Specified by:
      forEachRemaining in interface java.util.PrimitiveIterator.OfDouble
    • forEachRemaining

      @Deprecated public void forEachRemaining​(java.util.function.Consumer<? super java.lang.Double> action)
      Deprecated.
      Description copied from interface: DoubleIterator
      Specified by:
      forEachRemaining in interface DoubleIterator
      Specified by:
      forEachRemaining in interface java.util.Iterator<java.lang.Double>
      Specified by:
      forEachRemaining in interface java.util.PrimitiveIterator.OfDouble