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
- Author:
- Luke Blanshard (blanshlu@netscape.net), Drew Davidson (drew@ognl.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newEnumeration
public static <E> Enumeration<E> newEnumeration(Iterator<E> iterator)
hasMoreElements
public boolean hasMoreElements()
-
- Specified by:
hasMoreElements
in interface Enumeration<T>
nextElement
public T nextElement()
-
- Specified by:
nextElement
in interface Enumeration<T>
Copyright © 1997-2013 The Apache Software Foundation. All Rights Reserved.