Class DoubleIterators.UnmodifiableListIterator

    • Constructor Detail

    • Method Detail

      • hasNext

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

        public boolean hasPrevious()
        Description copied from interface: BidirectionalIterator
        Returns whether there is a previous element.
        Specified by:
        hasPrevious in interface BidirectionalIterator<java.lang.Double>
        Specified by:
        hasPrevious in interface java.util.ListIterator<java.lang.Double>
        Returns:
        whether there is a previous element.
        See Also:
        ListIterator.hasPrevious()
      • 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()
      • nextIndex

        public int nextIndex()
        Specified by:
        nextIndex in interface java.util.ListIterator<java.lang.Double>
      • previousIndex

        public int previousIndex()
        Specified by:
        previousIndex in interface java.util.ListIterator<java.lang.Double>
      • 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