Class IntIterators.UnmodifiableListIterator

    • Constructor Detail

      • UnmodifiableListIterator

        public UnmodifiableListIterator​(IntListIterator i)
    • Method Detail

      • hasNext

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

        public boolean hasPrevious()
        Description copied from interface: BidirectionalIterator
        Returns whether there is a previous element.
        Specified by:
        hasPrevious in interface BidirectionalIterator<java.lang.Integer>
        Specified by:
        hasPrevious in interface java.util.ListIterator<java.lang.Integer>
        Returns:
        whether there is a previous element.
        See Also:
        ListIterator.hasPrevious()
      • nextInt

        public int nextInt()
        Description copied from interface: IntIterator
        Returns the next element as a primitive type.
        Specified by:
        nextInt in interface IntIterator
        Specified by:
        nextInt in interface java.util.PrimitiveIterator.OfInt
        Returns:
        the next element in the iteration.
        See Also:
        Iterator.next()
      • previousInt

        public int previousInt()
        Description copied from interface: IntBidirectionalIterator
        Returns the previous element as a primitive type.
        Specified by:
        previousInt in interface IntBidirectionalIterator
        Returns:
        the previous element in the iteration.
        See Also:
        ListIterator.previous()
      • nextIndex

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

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

        public void forEachRemaining​(java.util.function.IntConsumer action)
        Specified by:
        forEachRemaining in interface java.util.PrimitiveIterator<java.lang.Integer,​java.util.function.IntConsumer>
        Specified by:
        forEachRemaining in interface java.util.PrimitiveIterator.OfInt
      • forEachRemaining

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