Interface BigListIterator<K>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default void add​(K e)
      Inserts the specified element into the list (optional operation).
      long nextIndex()
      Returns the index of the element that would be returned by a subsequent call to next.
      long previousIndex()
      Returns the index of the element that would be returned by a subsequent call to previous.
      default void set​(K e)
      Replaces the last element returned by Iterator.next() or BidirectionalIterator.previous() with the specified element (optional operation).
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, hasNext, next, remove
    • Method Detail

      • nextIndex

        long nextIndex()
        Returns the index of the element that would be returned by a subsequent call to next. (Returns list size if the list iterator is at the end of the list.)
        Returns:
        the index of the element that would be returned by a subsequent call to next, or list size if list iterator is at end of list.
        See Also:
        ListIterator.nextIndex()
      • previousIndex

        long previousIndex()
        Returns the index of the element that would be returned by a subsequent call to previous. (Returns -1 if the list iterator is at the beginning of the list.)
        Returns:
        the index of the element that would be returned by a subsequent call to previous, or -1 if list iterator is at beginning of list.
        See Also:
        ListIterator.previousIndex()
      • set

        default void set​(K e)
        Replaces the last element returned by Iterator.next() or BidirectionalIterator.previous() with the specified element (optional operation).

        This default implemention just throws an UnsupportedOperationException.

        Parameters:
        e - an element.
        See Also:
        ListIterator.set(Object)
      • add

        default void add​(K e)
        Inserts the specified element into the list (optional operation).

        This default implemention just throws an UnsupportedOperationException.

        Parameters:
        e - an element.
        See Also:
        ListIterator.add(Object)