java.lang.Object | +--org.apache.commons.collections.list.AbstractLinkedList.LinkedListIteratorEnclosing Class:
The last node that was returned by #next() or #previous(). | |
int | The modification count that the list is expected to have. |
The node that will be returned by #next(). | |
int | The index of #next. |
The parent list |
LinkedListIterator(AbstractLinkedList parent, int fromIndex) Create a ListIterator for a list. |
void | add(Object obj) |
void | Checks the modification count of the list is the value that this object expects. |
Gets the last node returned. | |
boolean | hasNext() |
boolean | |
Object | next() |
int | |
Object | previous() |
int | |
void | remove() |
void | set(Object obj) |
protected AbstractLinkedList.Node current
null
if next() or
.previous() haven't been called, or if the node has been removed
with remove() or a new node added with add(Object).
Should be accessed through getLastNodeReturned() to enforce
this behaviour.
protected int expectedModCount
protected AbstractLinkedList.Node next
protected int nextIndex
protected final AbstractLinkedList parent
protected LinkedListIterator(AbstractLinkedList parent, int fromIndex)
public void add(Object obj)
protected void checkModCount()
- If the list's modification
count isn't the value that was expected.protected AbstractLinkedList.Node getLastNodeReturned()
- If #next() orpublic boolean hasNext()
public boolean hasPrevious()
public Object next()
public int nextIndex()
public Object previous()
public int previousIndex()
public void remove()
public void set(Object obj)