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.IteratorAnIteratorthat 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 booleanhasNext()java.lang.Objectnext()voidremove()SinceEnumerations don't support element removal, this method always throws anUnsupportedOperationException.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator
-
next
public java.lang.Object next()
- Specified by:
nextin interfacejava.util.Iterator
-
remove
public void remove()
SinceEnumerations don't support element removal, this method always throws anUnsupportedOperationException.- Specified by:
removein interfacejava.util.Iterator- See Also:
Iterator.remove()
-
-