weiss.util
Interface ListIterator

All Superinterfaces:
Iterator

public interface ListIterator
extends Iterator

ListIterator interface for List interface.


Method Summary
 boolean hasPrevious()
          Tests if there are more items in the collection when iterating in reverse.
 java.lang.Object previous()
          Obtains the previous item in the collection.
 void remove()
          Remove the last item returned by next or previous.
 
Methods inherited from interface weiss.util.Iterator
hasNext, next
 

Method Detail

hasPrevious

public boolean hasPrevious()
Tests if there are more items in the collection when iterating in reverse.
Returns:
true if there are more items in the collection when traversing in reverse.

previous

public java.lang.Object previous()
Obtains the previous item in the collection.
Returns:
the previous (as yet unseen) item in the collection when traversing in reverse.

remove

public void remove()
Remove the last item returned by next or previous. Can only be called once after next or previous.
Specified by:
remove in interface Iterator