E
- Subject of the enumeration to be wrappedpublic class IterableEnumeration<E> extends Object implements Iterable<E>
Constructor and Description |
---|
IterableEnumeration(Enumeration<E> enumeration)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
Iterator<E> |
iterator()
Returns an iterator wrapping the underlying enumeration
|
static <E> Iterable<E> |
wrapEnumeration(Enumeration<E> enumeration)
Typesafe factory method for construction convenience
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public IterableEnumeration(Enumeration<E> enumeration)
enumeration
- The enumeration to be wrappedpublic static <E> Iterable<E> wrapEnumeration(Enumeration<E> enumeration)
E
- Type-arg for the relevant enumerationenumeration
- The enumeration to be wrappedCopyright © 2010–2018 Jadira Systems. All rights reserved.