Build 1.0_r1(from source)

java.util
Interface Enumeration<E>

All Known Implementing Classes:
AllPermissionCollection.SingletonEnumeration, ConcurrentHashMap.KeyIterator, ConcurrentHashMap.ValueIterator, EmptyEnumeration, Permissions.MetaEnumeration, StringTokenizer, TwoEnumerationsInOne

public interface Enumeration<E>

An Enumeration is used to sequence over a collection of objects.

See Also:
Hashtable, Properties, Vector

Method Summary
 boolean hasMoreElements()
          Returns if this Enumeration has more elements.
 E nextElement()
          Returns the next element in this Enumeration.
 

Method Detail

hasMoreElements

boolean hasMoreElements()
Returns if this Enumeration has more elements.

Returns:
true if there are more elements, false otherwise
See Also:
nextElement()

nextElement

E nextElement()
Returns the next element in this Enumeration.

Returns:
the next element in this Enumeration
Throws:
NoSuchElementException - when there are no more elements
See Also:
hasMoreElements()

Build 1.0_r1(from source)

Please submit a feedback, bug or feature