org.apache.commons.collections.list
Class AbstractLinkedList.LinkedListIterator
java.lang.Object
org.apache.commons.collections.list.AbstractLinkedList.LinkedListIterator
- AbstractLinkedList
- Iterator, ListIterator, OrderedIterator
protected static class AbstractLinkedList.LinkedListIterator
extends java.lang.Object
A list iterator over the linked list.
expectedModCount
protected int expectedModCount
The modification count that the list is expected to have. If the list
doesn't have this count, then a
java.util.ConcurrentModificationException
may be thrown by
the operations.
nextIndex
protected int nextIndex
LinkedListIterator
protected LinkedListIterator(AbstractLinkedList parent,
int fromIndex)
throws IndexOutOfBoundsException
Create a ListIterator for a list.
parent
- the parent listfromIndex
- the index to start at
add
public void add(Object obj)
checkModCount
protected void checkModCount()
Checks the modification count of the list is the value that this
object expects.
getLastNodeReturned
protected AbstractLinkedList.Node getLastNodeReturned()
throws IllegalStateException
Gets the last node returned.
hasNext
public boolean hasNext()
nextIndex
public int nextIndex()
previousIndex
public int previousIndex()
remove
public void remove()
set
public void set(Object obj)
Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.