Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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 java.util.Iterator

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

        forEachRemaining
    • Constructor Detail

      • UnmodifiableIterator

        public UnmodifiableIterator​(DoubleIterator i)
    • Method Detail

      • 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()