Package io.undertow.servlet.util
Class IteratorEnumeration<T>
- java.lang.Object
-
- io.undertow.servlet.util.IteratorEnumeration<T>
-
- All Implemented Interfaces:
Enumeration<T>
public class IteratorEnumeration<T> extends Object implements Enumeration<T>
Wrapper to convert an iterator to an enumeration- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description IteratorEnumeration(Iterator<T> iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasMoreElements()TnextElement()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Enumeration
asIterator
-
-
-
-
Method Detail
-
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElementsin interfaceEnumeration<T>
-
nextElement
public T nextElement()
- Specified by:
nextElementin interfaceEnumeration<T>
-
-