ListIterator Methods
The following ListIterator methods are supported.
Type | Method | Notes |
---|---|---|
void | add(E o) | Inserts the specified element into the list. |
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. |
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. |
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. |
void | set(E o) | Replaces the last element returned by next or previous with the specified element. |
Copyright © Cloud Software Group, Inc. All rights reserved.