Interface ObjectBigListIterator<K>

All Superinterfaces:
BidirectionalIterator<K>, BigListIterator<K>, Iterator<K>, ObjectBidirectionalIterator<K>, ObjectIterator<K>
All Known Implementing Classes:
AbstractObjectBigListIterator, ObjectBigListIterators.AbstractIndexBasedBigListIterator, ObjectBigListIterators.BigListIteratorListIterator, ObjectBigListIterators.EmptyBigListIterator, ObjectBigListIterators.UnmodifiableBigListIterator

public interface ObjectBigListIterator<K> extends ObjectBidirectionalIterator<K>, BigListIterator<K>
A type-specific BigListIterator.
See Also:
  • Method Details

    • set

      default void set(K k)
      Replaces the last element returned by next() or previous() with the specified element (optional operation).
      Specified by:
      set in interface BigListIterator<K>
      Parameters:
      k - an element.
      See Also:
    • add

      default void add(K k)
      Inserts the specified element into the list (optional operation).
      Specified by:
      add in interface BigListIterator<K>
      Parameters:
      k - an element.
      See Also:
    • skip

      default long skip(long 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:
    • back

      default long back(long n)
      Moves back for the given number of elements.

      The effect of this call is exactly the same as that of calling previous() for n times (possibly stopping if BidirectionalIterator.hasPrevious() becomes false).

      Parameters:
      n - the number of elements to skip back.
      Returns:
      the number of elements actually skipped.
      See Also:
    • 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 Iterator.next() for n times (possibly stopping if Iterator.hasNext() becomes false).

      Specified by:
      skip in interface ObjectBidirectionalIterator<K>
      Specified by:
      skip in interface ObjectIterator<K>
      Parameters:
      n - the number of elements to skip.
      Returns:
      the number of elements actually skipped.
      See Also: