Package org.javlo.utils
Class IteratorAsEnumeration<E>
- java.lang.Object
-
- org.javlo.utils.IteratorAsEnumeration<E>
-
- All Implemented Interfaces:
Enumeration<E>
public class IteratorAsEnumeration<E> extends Object implements Enumeration<E>
-
-
Constructor Summary
Constructors Constructor Description IteratorAsEnumeration(Iterator<E> iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMoreElements()
E
nextElement()
-
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:
hasMoreElements
in interfaceEnumeration<E>
-
nextElement
public E nextElement()
- Specified by:
nextElement
in interfaceEnumeration<E>
-
-