asEnumeration

Adapts an Iterator to the Enumeration interface.

The Iterable equivalent of this method is either Collections.enumeration (if you have a Collection), or Iterators.asEnumeration(collection.iterator()).

See also