Package de.aristaflow.adept2.util
Class CollectionTools.EnumerationIterator<T>
- java.lang.Object
-
- de.aristaflow.adept2.util.CollectionTools.EnumerationIterator<T>
-
- Type Parameters:
T
- The type of the iterated elements.
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
- CollectionTools
public static class CollectionTools.EnumerationIterator<T> extends Object implements Iterator<T>
An iterator wrapping anEnumeration
in anIterator
.
-
-
Field Summary
Fields Modifier and Type Field Description protected Enumeration<T>
enumeration
The wrapped enumeration.
-
Constructor Summary
Constructors Constructor Description EnumerationIterator(Enumeration<T> enumeration)
Creates a newIterator
for the designatedEnumeration
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
T
next()
-
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, remove
-
-
-
-
Field Detail
-
enumeration
protected final Enumeration<T> enumeration
The wrapped enumeration.
-
-
Constructor Detail
-
EnumerationIterator
public EnumerationIterator(Enumeration<T> enumeration)
Creates a newIterator
for the designatedEnumeration
.- Parameters:
enumeration
- TheEnumeration
which to wrap in anIterator
.
-
-