|
|||||||||
| Home >> All >> java >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.util
Interface Enumeration

- All Known Implementing Classes:
- Hashtable.EntryEnumerator, StringTokenizer
- public interface Enumeration
Interface for lists of objects that can be returned in sequence. Successive objects are obtained by the nextElement method.
As of Java 1.2, the Iterator interface provides the same functionality, but with shorter method names and a new optional method to remove items from the list. If writing for 1.2, consider using Iterator instead. Enumerations over the new collections classes, for use with legacy APIs that require them, can be obtained by the enumeration method in class Collections.
- Since:
- 1.0
| Method Summary | |
boolean |
hasMoreElements()
Tests whether there are elements remaining in the enumeration. |
java.lang.Object |
nextElement()
Obtain the next element in the enumeration. |
| Method Detail |
hasMoreElements
public boolean hasMoreElements()
- Tests whether there are elements remaining in the enumeration.
nextElement
public java.lang.Object nextElement()
- Obtain the next element in the enumeration.
|
|||||||||
| Home >> All >> java >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC