uwcse.collections
Interface SimpleIterator
- public interface SimpleIterator
A very simple iterator interface. Supports just two simple operations
for testing and advancing/accessing the iterator.
Method Summary |
boolean |
hasNext()
Answer true iff there are more items to access. |
java.lang.Object |
next()
Answer the current item AND advance the iterator to the next item. |
hasNext
public boolean hasNext()
- Answer true iff there are more items to access.
next
public java.lang.Object next()
- Answer the current item AND advance the iterator to the next item.