Interface ObjectBigListIterator<K>

All Superinterfaces:
it.unimi.dsi.fastutil.BidirectionalIterator<K>, it.unimi.dsi.fastutil.BigListIterator<K>, Iterator<K>, it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<K>, it.unimi.dsi.fastutil.objects.ObjectIterator<K>

public interface ObjectBigListIterator<K> extends it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<K>, it.unimi.dsi.fastutil.BigListIterator<K>
A type-specific BigListIterator.
See Also:
  • BigListIterator
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    add(K k)
    Inserts the specified element into the list (optional operation).
    default long
    back(long n)
    Moves back for the given number of elements.
    default void
    set(K k)
    Replaces the last element returned by next() or previous() with the specified element (optional operation).
    default int
    skip(int n)
    default long
    skip(long n)
    Skips the given number of elements.

    Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator

    hasPrevious, previous

    Methods inherited from interface it.unimi.dsi.fastutil.BigListIterator

    nextIndex, previousIndex

    Methods inherited from interface java.util.Iterator

    forEachRemaining, hasNext, next, remove

    Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator

    back
  • 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 it.unimi.dsi.fastutil.BigListIterator<K>
      See Also:
    • add

      default void add(K k)
      Inserts the specified element into the list (optional operation).
      Specified by:
      add in interface it.unimi.dsi.fastutil.BigListIterator<K>
      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:
      • BidirectionalIterator.previous()
    • skip

      default int skip(int n)
      Specified by:
      skip in interface it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<K>
      Specified by:
      skip in interface it.unimi.dsi.fastutil.objects.ObjectIterator<K>