org.ws4d.java.structures
Interface Iterator

All Known Subinterfaces:
ListIterator
All Known Implementing Classes:
ReadOnlyIterator

public interface Iterator

An iterator over a data structure.


Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 java.lang.Object next()
          Returns the next element in the iteration.
 void remove()
          Removes from the underlying data structure the last element returned by the iterator (optional operation).
 

Method Detail

hasNext

boolean hasNext()
Returns true if the iteration has more elements.

Returns:
true if the iterator has more elements.

next

java.lang.Object next()
Returns the next element in the iteration.

Returns:
the next element in the iteration.

remove

void remove()
Removes from the underlying data structure the last element returned by the iterator (optional operation).