Interface ObjectListIterator<K>

All Superinterfaces:
it.unimi.dsi.fastutil.BidirectionalIterator<K>, Iterator<K>, ListIterator<K>, it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<K>, it.unimi.dsi.fastutil.objects.ObjectIterator<K>
All Known Implementing Classes:
ObjectIterators.AbstractIndexBasedListIterator, ObjectIterators.EmptyIterator, ObjectIterators.UnmodifiableListIterator

public interface ObjectListIterator<K> extends it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<K>, ListIterator<K>
A type-specific bidirectional iterator that is also a ListIterator.

This interface merges the methods provided by a ListIterator and a type-specific BidirectionalIterator. Moreover, it provides type-specific versions of add() and set().

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    add(K k)
    Inserts the specified element into the list (optional operation).
    default void
    Removes from the underlying collection the last element returned by this iterator (optional operation).
    default void
    set(K k)
    Replaces the last element returned by Iterator.next() or BidirectionalIterator.previous() with the specified element (optional operation).

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

    hasPrevious, previous

    Methods inherited from interface java.util.Iterator

    forEachRemaining

    Methods inherited from interface java.util.ListIterator

    hasNext, hasPrevious, next, nextIndex, previous, previousIndex

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

    back, skip