org.riotfamily.common.collection
Class IteratorEnumeration<T>

java.lang.Object
  extended by 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]

Constructor Summary
IteratorEnumeration(Iterator<T> iterator)
           
 
Method Summary
 boolean hasMoreElements()
           
 T nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorEnumeration

public IteratorEnumeration(Iterator<T> iterator)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration<T>

nextElement

public T nextElement()
Specified by:
nextElement in interface Enumeration<T>