| java.util.Iterator<E> |
Known Indirect Subclasses
|
An Iterator is used to sequence over a collection of objects.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns if there are more elements to iterate.
| |||||||||||
Returns the next object in the iteration.
| |||||||||||
Removes the last object returned by
next from the
collection. | |||||||||||
Returns if there are more elements to iterate.
Returns the next object in the iteration.
| NoSuchElementException | when there are no more elements |
|---|
Removes the last object returned by next from the
collection.
| UnsupportedOperationException | when removing is not supported by the collection being iterated |
|---|---|
| IllegalStateException | when next has not been called, or
remove has already been called after the
last call to next
|