Package de.intarsys.tools.collection
Class IteratorEnumeration<T>
java.lang.Object
de.intarsys.tools.collection.IteratorEnumeration<T>
- All Implemented Interfaces:
Enumeration<T>
Wraps an iterator into an enumeration API.
-
Constructor Details
-
IteratorEnumeration
IteratorEnumeration constructor.- Parameters:
i
- The Iterator to be enumerated
-
-
Method Details
-
getIterator
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElements
in interfaceEnumeration<T>
-
nextElement
- Specified by:
nextElement
in interfaceEnumeration<T>
-