Example usage for Java java.util ListIterator fields, constructors, methods, implement or subclass
The text is from its open source code.
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 | hasPrevious() Returns true if this list iterator has more elements when traversing the list in the reverse direction. |
E | 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 . |
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 | 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). |