org.riotfamily.common.collection
Class IteratorEnumeration<T>
java.lang.Object
org.riotfamily.common.collection.IteratorEnumeration<T>
- All Implemented Interfaces:
- Enumeration<T>
public class IteratorEnumeration<T>
- extends Object
- implements Enumeration<T>
Enumeration that works on an Iterator.
- Author:
- Felix Gnass [fgnass at neteye dot de]
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IteratorEnumeration
public IteratorEnumeration(Iterator<T> iterator)
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface Enumeration<T>
nextElement
public T nextElement()
- Specified by:
nextElement
in interface Enumeration<T>