Package org.apache.commons.ognl
Class IteratorEnumeration<T>
- java.lang.Object
-
- org.apache.commons.ognl.IteratorEnumeration<T>
-
- All Implemented Interfaces:
Enumeration<T>
public class IteratorEnumeration<T> extends Object implements Enumeration<T>
Maps an Iterator to an Enumeration
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMoreElements()
static <E> Enumeration<E>
newEnumeration(Iterator<E> iterator)
T
nextElement()
-
-
-
Method Detail
-
newEnumeration
public static <E> Enumeration<E> newEnumeration(Iterator<E> iterator)
-
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interfaceEnumeration<T>
-
nextElement
public T nextElement()
- Specified by:
nextElement
in interfaceEnumeration<T>
-
-