Class EnumerationIterator
- java.lang.Object
-
- org.codehaus.janino.util.iterator.EnumerationIterator
-
- All Implemented Interfaces:
java.util.Iterator
public class EnumerationIterator extends java.lang.Object implements java.util.Iterator
AnIterator
that iterates over the elements of anEnumeration
.
-
-
Constructor Summary
Constructors Constructor Description EnumerationIterator(java.util.Enumeration e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
java.lang.Object
next()
void
remove()
SinceEnumeration
s don't support element removal, this method always throws anUnsupportedOperationException
.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator
-
next
public java.lang.Object next()
- Specified by:
next
in interfacejava.util.Iterator
-
remove
public void remove()
SinceEnumeration
s don't support element removal, this method always throws anUnsupportedOperationException
.- Specified by:
remove
in interfacejava.util.Iterator
- See Also:
Iterator.remove()
-
-