Package com.day.util
Class EnumerationIterator
- java.lang.Object
-
- com.day.util.EnumerationIterator
-
- All Implemented Interfaces:
java.util.Iterator
public class EnumerationIterator extends java.lang.Object implements java.util.Iterator
TheEnumerationIterator
implements anIterator
that iterates over a givenEnumeration
. This is usefull, when needing anIterator
but having anEnumeration
.- Since:
- antbear Audience wad
-
-
Constructor Summary
Constructors Constructor Description EnumerationIterator(java.util.Enumeration delegatee)
Constructs anEnuerationIterator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
java.lang.Object
next()
void
remove()
Always throwsUnsupportedOperationException
.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator
- See Also:
Iterator.hasNext()
-
next
public java.lang.Object next()
- Specified by:
next
in interfacejava.util.Iterator
- See Also:
Iterator.next()
-
remove
public void remove()
Always throwsUnsupportedOperationException
.- Specified by:
remove
in interfacejava.util.Iterator
- See Also:
Iterator.remove()
-
-