weiss.util
Interface Iterator

All Known Subinterfaces:
ListIterator

public interface Iterator

Iterator interface.


Method Summary
 boolean hasNext()
          Tests if there are items not yet iterated over.
 java.lang.Object next()
          Obtains the next (as yet unseen) item in the collection.
 void remove()
          Remove the last item returned by next.
 

Method Detail

hasNext

public boolean hasNext()
Tests if there are items not yet iterated over.
Returns:
true if there are more items in the collection.

next

public java.lang.Object next()
Obtains the next (as yet unseen) item in the collection.
Returns:
the next (as yet unseen) item in the collection.

remove

public void remove()
Remove the last item returned by next. Can only be called once after next.