Type Parameters:
E - the type of elements returned by this list iterator
All Superinterfaces:
Iterator<E>

  • Method Summary

    void

    add(E e)

    Inserts the specified element into the list (optional operation).

    boolean

    hasNext()

    Returns true if this list iterator has more elements when traversing the list in the forward direction.

    boolean

    Returns true if this list iterator has more elements when traversing the list in the reverse direction.

    next()

    Returns the next element in the list and advances the cursor position.

    int

    nextIndex()

    Returns the index of the element that would be returned by a subsequent call to next().

    previous()

    Returns the previous element in the list and moves the cursor position backwards.

    int

    Returns the index of the element that would be returned by a subsequent call to previous().

    void

    remove()

    Removes from the list the last element that was returned by next() or previous() (optional operation).

    void

    set(E e)

    Replaces the last element returned by next() or previous() with the specified element (optional operation).

  • Method Details

    • hasNext

    • next

    • hasPrevious

    • previous

    • nextIndex

    • previousIndex

    • remove

    • set

    • add