T - the type of the Enumeration's contentspublic final class IterableEnumeration<T> extends Object implements Iterable<T>
Enumeration as an Iterable.| Modifier and Type | Method and Description |
|---|---|
static <T> Iterable<T> |
iterable(Enumeration<T> enumeration)
Creates a new
Iterable that will iterate over the given enumeration |
Iterator<T> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static <T> Iterable<T> iterable(Enumeration<T> enumeration)
Iterable that will iterate over the given enumerationT - the type of the enumeration's elementsenumeration - The enumeration to expose as an Iterable