An iterator over a collection. Iterator takes the place of
Enumeration in the Java Collections Framework. Iterators
differ from enumerations in two ways:
This interface is a member of the Java Collections Framework.
<E> | the type of elements returned by this iterator |
Collection, ListIterator, Iterable
@apiNote
An Enumeration can be converted into an Iterator by
using the Enumeration.asIterator method.