Package org.plumelib.util
Class CollectionsP.EnumerationIterator<T>
java.lang.Object
org.plumelib.util.CollectionsP.EnumerationIterator<T>
- Type Parameters:
T- the type of elements of the enumeration and iterator
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
CollectionsP
Converts an Enumeration into an Iterator.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate 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, waitMethods 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 CollectionsP.EnumerationIterator<T> this) -
next
-
remove
public void remove(@GuardSatisfied CollectionsP.EnumerationIterator<T> this)
-