| java.util.Iterator
Iterator | public interface Iterator (Code) | | An Iterator is used to sequence over a collection of objects.
|
Method Summary | |
public boolean | hasNext() Answers if there are more elements to iterate. | public E | next() Answers the next object in the iteration. | public void | remove() Removes the last object returned by next from the
collection. |
hasNext | public boolean hasNext()(Code) | | Answers if there are more elements to iterate.
true if there are more elements, false otherwise See Also: Iterator.next |
remove | public void remove()(Code) | | Removes the last object returned by next from the
collection.
exception: UnsupportedOperationException - when removing is not supported by the collection beingiterated exception: IllegalStateException - when next has not been called, orremove has already been called after thelast call to next |
|
|