public interface Enumerator extends Cloneable, java.util.Enumeration {
public void reset();
// From java.util.Enumeration
public boolean hasMoreElements();
public Object nextElement() throws NoSuchElementException;
// From Cloneable
public Object clone();
}
The Enumerator Interface supports the standard Java enumeration interface, and extends it with methods to make it functionally equivalent to the standard automation enumerator, IEnumVariant.
Resets the Enumerator to the start of the collection.
public boolean hasMoreElements()
Returns true if there are anymore items in the collection that can be obtained by calling nextElement().
public Object nextElement() throws NoSuchElementException
Returns the next Object in the collection. You should typically call this following a call to hasMoreElements().
Makes a copy of the Enumerator, with the current state of the Enumeration.