org.apache.commons.collections

Class CursorableLinkedList.Cursor

Enclosing Class:
CursorableLinkedList
Implemented Interfaces:
ListIterator

public class CursorableLinkedList.Cursor
extends org.apache.commons.collections.CursorableLinkedList.ListIter
implements ListIterator

Method Summary

void
add(Object o)
protected void
checkForComod()
void
close()
Mark this cursor as no longer being needed.
protected void
invalidate()
protected void
listableChanged(org.apache.commons.collections.CursorableLinkedList.Listable elt)
protected void
listableInserted(org.apache.commons.collections.CursorableLinkedList.Listable elt)
protected void
listableRemoved(org.apache.commons.collections.CursorableLinkedList.Listable elt)
int
nextIndex()
int
previousIndex()

Methods inherited from class org.apache.commons.collections.CursorableLinkedList.ListIter

add, checkForComod, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, set

Method Details

add

public void add(Object o)
Overrides:
add in interface org.apache.commons.collections.CursorableLinkedList.ListIter

checkForComod

protected void checkForComod()
Overrides:
checkForComod in interface org.apache.commons.collections.CursorableLinkedList.ListIter

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.

invalidate

protected void invalidate()

listableChanged

protected void listableChanged(org.apache.commons.collections.CursorableLinkedList.Listable elt)

listableInserted

protected void listableInserted(org.apache.commons.collections.CursorableLinkedList.Listable elt)

listableRemoved

protected void listableRemoved(org.apache.commons.collections.CursorableLinkedList.Listable elt)

nextIndex

public int nextIndex()
Overrides:
nextIndex in interface org.apache.commons.collections.CursorableLinkedList.ListIter

previousIndex

public int previousIndex()
Overrides:
previousIndex in interface org.apache.commons.collections.CursorableLinkedList.ListIter

Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.