public class CursorableLinkedList.Cursor extends CursorableLinkedList.ListIter implements java.util.ListIterator<E>
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
_valid |
_cur, _expectedModCount, _lastReturned, _nextIndex
Constructor and Description |
---|
Cursor(int index) |
Modifier and Type | Method and Description |
---|---|
void |
add(E o) |
protected void |
checkForComod() |
void |
close()
Mark this cursor as no longer being needed.
|
protected void |
invalidate() |
protected void |
listableChanged(CursorableLinkedList.Listable<E> elt) |
protected void |
listableInserted(CursorableLinkedList.Listable<E> elt) |
protected void |
listableRemoved(CursorableLinkedList.Listable<E> elt) |
int |
nextIndex() |
int |
previousIndex() |
hasNext, hasPrevious, next, previous, remove, set
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public int previousIndex()
previousIndex
in interface java.util.ListIterator<E>
previousIndex
in class CursorableLinkedList.ListIter
public int nextIndex()
nextIndex
in interface java.util.ListIterator<E>
nextIndex
in class CursorableLinkedList.ListIter
public void add(E o)
add
in interface java.util.ListIterator<E>
add
in class CursorableLinkedList.ListIter
protected void listableRemoved(CursorableLinkedList.Listable<E> elt)
protected void listableInserted(CursorableLinkedList.Listable<E> elt)
protected void listableChanged(CursorableLinkedList.Listable<E> elt)
protected void checkForComod()
checkForComod
in class CursorableLinkedList.ListIter
protected void invalidate()
public void close()