java.util
Interface Enumeration

All Known Implementing Classes:
DynamicMapEnumeration, java.util.Hashtable.EmptyEnumerator, java.util.Hashtable.Enumerator, javax.swing.text.StyleContext.KeyEnumeration, LLEnumeration, javax.swing.MultiUIDefaults.MultiUIDefaultsEnumerator, PermissionsEnumerator, Queue, ResourceBundleEnumeration, StringTokenizer, VectorEnumeration, VectorEnumerator

public interface Enumeration

Untamed:


Method Summary
 ConstList asList()
          Added:
 boolean hasMoreElements()
          Enabled: Tests if this enumeration contains more elements.
 void iterate(AssocFunc func)
          Added: Enumerates the enumeration.
 Object nextElement()
          Enabled: Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
 

Method Detail

hasMoreElements

public boolean hasMoreElements()
Enabled: Tests if this enumeration contains more elements.

Returns:
true if and only if this enumeration object contains at least one more element to provide; false otherwise.

nextElement

public Object nextElement()
Enabled: Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

Returns:
the next element of this enumeration.

asList

public ConstList asList()
Added:


iterate

public void iterate(AssocFunc func)
Added: Enumerates the enumeration. For each element, calls func with the count as key and the element as value.



comments?