weiss.util
Interface ListIterator<AnyType>

All Superinterfaces:
java.util.Iterator<AnyType>

public interface ListIterator<AnyType>
extends Iterator<AnyType>

ListIterator interface for List interface.


Method Summary
 boolean hasPrevious()
          Tests if there are more items in the collection when iterating in reverse.
 AnyType 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

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

AnyType previous()
Obtains the previous item in the collection.

Returns:
the previous (as yet unseen) item in the collection when traversing in reverse.

remove

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 java.util.Iterator<AnyType>