org.gjt.rec.util
Class EnumerationIterator
java.lang.Object
|
+--org.gjt.rec.util.EnumerationIterator
- All Implemented Interfaces:
- Iterator
- public final class EnumerationIterator
- extends Object
- implements Iterator
An iterator that iterates over the elements in an Enumeration.
- Author:
- Neil Stockbridge
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
EnumerationIterator
public EnumerationIterator(Enumeration e)
- Constructs a new EnumerationIterator with a particular enumeration.
- Parameters:
e
- the enumeration with the elements to iterate over
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
next
public Object next()
- Specified by:
next
in interface Iterator
remove
public void remove()
- Specified by:
remove
in interface Iterator