| hasNext() |
returns true if there are more elements in a forward direction |
| hasPrevious() |
returns true if there are more elements in a backward direction |
| next() |
returns the next element in the List |
| nextIndex() |
returns the index of the next element in the list, or, the size of the list if there are no more elements |
| previous() |
returns the previous element in the List |
| previousIndex() |
returns the index of the previous element in the list. If positioned at the first element, returns -1 |
| add(Object obj) |
inserts the new object immeadiately before the element which would be returned by next(). |
| remove() |
removes the last element in the List retrieved by a next() or previous() operation.
Can only be made once after a next() or previous() operation and cannot be made if there has been an intervening add().
|
| set(Object obj) |
replaces the last element in the List retrieved by a next() or previous() operation; there can be no intervening call to add() or remove().
|