- <init>
Constructor that wraps a list. There is no way to reset a ListIterator instance
without recreating i
- reset
Resets the iterator back to the start of the list.
- add
Inserts the specified element into the underlying list. The element is inserted
before the next elem
- hasNext
Returns whether this iterator has any more elements. Returns false only if the
list originally had z
- hasPrevious
Returns whether this iterator has any more previous elements. Returns false only
if the list origina
- next
Returns the next object in the list. If at the end of the list, returns the
first element.
- nextIndex
Returns the index of the element that would be returned by a subsequent call to
#next. As would be e
- previous
Returns the previous object in the list. If at the beginning of the list, return
the last element. N
- previousIndex
Returns the index of the element that would be returned by a subsequent call to
#previous. As would
- remove
Removes the previously retrieved item from the underlying list. This feature is
only supported if th