org.lateralnz.common.util
Class EnumIterWrapper
java.lang.Object
org.lateralnz.common.util.EnumIterWrapper
- All Implemented Interfaces:
- java.util.Enumeration, java.util.Iterator
public class EnumIterWrapper
- extends java.lang.Object
- implements java.util.Enumeration, java.util.Iterator
an enumeration wrapper for an iterator and vice versa
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumIterWrapper
public EnumIterWrapper(java.util.Iterator iter)
EnumIterWrapper
public EnumIterWrapper(java.util.Enumeration en)
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements in interface java.util.Enumeration
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface java.util.Iterator
nextElement
public java.lang.Object nextElement()
- Specified by:
nextElement in interface java.util.Enumeration
next
public java.lang.Object next()
- Specified by:
next in interface java.util.Iterator
remove
public void remove()
- Specified by:
remove in interface java.util.Iterator