org.apache.commons.collections.list
Class CursorableLinkedList.Cursor
- CursorableLinkedList
- Iterator, ListIterator, OrderedIterator
public static class CursorableLinkedList.Cursor
An extended ListIterator
that allows concurrent changes to
the underlying list.
add , checkModCount , getLastNodeReturned , hasNext , hasPrevious , next , nextIndex , previous , previousIndex , remove , set |
Cursor
protected Cursor(CursorableLinkedList parent,
int index)
Constructs a new cursor.
index
- the index to start from
close
public void close()
Mark this cursor as no longer being needed. Any resources
associated with this cursor are immediately released.
In previous versions of this class, it was mandatory to close
all cursor objects to avoid memory leaks. It is no longer
necessary to call this close method; an instance of this class
can now be treated exactly like a normal iterator.
nodeChanged
protected void nodeChanged(AbstractLinkedList.Node node)
Handle event from the list when a node has changed.
node
- the node that changed
nodeInserted
protected void nodeInserted(AbstractLinkedList.Node node)
Handle event from the list when a node has been added.
node
- the node that was added
nodeRemoved
protected void nodeRemoved(AbstractLinkedList.Node node)
Handle event from the list when a node has been removed.
node
- the node that was removed
Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.