java.util
Interface Enumeration


public interface Enumeration

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

Version:
1.0
See Also:
Hashtable, Properties, Vector

Method Summary
 boolean hasMoreElements()
          Answers if this Enumeration has more elements.
 java.lang.Object nextElement()
          Answers the next element in this Enumeration.
 

Method Detail

hasMoreElements

public boolean hasMoreElements()
Answers if this Enumeration has more elements.

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

nextElement

public java.lang.Object nextElement()
Answers the next element in this Enumeration.

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