All of the collections that support enumeration do so by implementing the Enumerator interface. The Enumerator interface supports the standard Java enumeration interface, java.util.Enumeration, and extends it with methods to make it functionally equivalent to the standard automation enumerator, IEnumVariant. For example, all objects that implement Enumerator must implement Cloneable, and the reset member can be used to set the enumerator to the beginning of the collection.
public void reset( )
Resets the Enumerator to the start of the collection.
public Boolean hasMoreElements( )
Returns true if there are any remaining 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( ).
java.lang.Cloneable Methods
Makes a copy of the Enumerator, with the current state of the enumeration.