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

Field Summary
static String REVISION
           
 
Constructor Summary
EnumerationIterator(Enumeration e)
          Constructs a new EnumerationIterator with a particular enumeration.
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

EnumerationIterator

public EnumerationIterator(Enumeration e)
Constructs a new EnumerationIterator with a particular enumeration.

Parameters:
e - the enumeration with the elements to iterate over
Method Detail

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