private final class LinkedListModel.ReportingListIterator
extends java.lang.Object
implements java.util.ListIterator<E>
| Modifier and Type | Field and Description |
|---|---|
private java.util.ListIterator<E> |
delegate
Refers to the wrapped ListIterator that is used
to forward all ListIterator methods to.
|
private int |
lastReturnedIndex
Holds the object that was returned last by the underlying
ListIteratur.
|
| Constructor and Description |
|---|
ReportingListIterator(java.util.ListIterator<E> delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E e) |
boolean |
hasNext() |
boolean |
hasPrevious() |
E |
next() |
int |
nextIndex() |
E |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(E e) |
private final java.util.ListIterator<E> delegate
private int lastReturnedIndex
ReportingListIterator(java.util.ListIterator<E> delegate)
public boolean hasNext()
public E next()
public boolean hasPrevious()
hasPrevious in interface java.util.ListIterator<E>public int nextIndex()
nextIndex in interface java.util.ListIterator<E>public int previousIndex()
previousIndex in interface java.util.ListIterator<E>public void remove()