Package org.plumelib.util
Class CollectionsPlume.EnumerationIterator<T>
java.lang.Object
org.plumelib.util.CollectionsPlume.EnumerationIterator<T>
- Type Parameters:
T
- the type of elements of the enumeration and iterator
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
- CollectionsPlume
public static final class CollectionsPlume.EnumerationIterator<T>
extends Object
implements Iterator<T>
Converts an Enumeration into an Iterator.
-
Constructor Summary
ConstructorDescriptionCreate an Iterator that yields the elements of the given Enumeration. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
EnumerationIterator
Create an Iterator that yields the elements of the given Enumeration.- Parameters:
e
- the Enumeration to make into an Iterator
-
-
Method Details
-
hasNext
public boolean hasNext(@GuardSatisfied CollectionsPlume.EnumerationIterator<T> this) -
next
-
remove
public void remove(@GuardSatisfied CollectionsPlume.EnumerationIterator<T> this)
-