Class CollectionsPlume.IteratorEnumeration<T>
java.lang.Object
org.plumelib.util.CollectionsPlume.IteratorEnumeration<T>
- Type Parameters:
T- the type of elements of the enumeration and iterator
- All Implemented Interfaces:
Enumeration<T>
- Enclosing class:
CollectionsPlume
public static final class CollectionsPlume.IteratorEnumeration<T>
extends Object
implements Enumeration<T>
Converts an Iterator into an Enumeration.
-
Constructor Summary
ConstructorsConstructorDescriptionIteratorEnumeration(Iterator<T> itor) Create an Enumeration that contains the elements returned by the given Iterator. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Enumeration
asIterator
-
Constructor Details
-
IteratorEnumeration
-
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElementsin interfaceEnumeration<T>
-
nextElement
- Specified by:
nextElementin interfaceEnumeration<T>
-