E - type of listpublic final class ListIteratorImpl<E> extends IteratorImpl<E> implements ListIterator<E>
| Modifier and Type | Method and Description | 
|---|---|
| void | add(E e)Inserts the specified element into the list | 
| boolean | hasPrevious()Returns true if this list iterator has more elements when traversing the list in the forward direction. | 
| int | nextIndex()Returns the index of the element that would be returned by a subsequent call to  next(). | 
| E | previous()Returns the previous element in the list and moves the cursor position backwards. | 
| int | previousIndex()Returns the index of the element that would be returned by a subsequent call to  previous(). | 
| void | set(E e)Replaces the last element returned by next() or previous() with the specified element . | 
hasNext, next, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasNext, next, removeforEachRemainingpublic boolean hasPrevious()
hasPrevious in interface ListIterator<E>public int nextIndex()
next().nextIndex in interface ListIterator<E>public int previousIndex()
previous().previousIndex in interface ListIterator<E>public E previous()
previous in interface ListIterator<E>public void set(E e)
set in interface ListIterator<E>public void add(E e)
add in interface ListIterator<E>