Final

java.util
Interface Enumeration<T>

All Known Subinterfaces:
NamingEnumeration<T>
All Known Implementing Classes:
StringTokenizer

public interface Enumeration<T>

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

See Also:
Hashtable, Properties, Vector

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

Method Detail

hasMoreElements

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

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

nextElement

T 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()

Final

Licensed Materials - Property of IBM
© Copyright IBM Corp. 2006, 2008 All Rights Reserved.