Opus5
Interface Enumeration
- All Superinterfaces:
- java.util.Enumeration
- All Known Implementing Classes:
- AbstractTree.TreeEnumeration
- public interface Enumeration
- extends java.util.Enumeration
Encapsulates methods common to all enumerations.
An enumeration is used to enumerate one-by-one
all the objects in a container.
This interface is identical to java.util.Enumeration.
- Version:
- $Id: Enumeration.java,v 3.1 1998/07/28 01:32:17 brpreiss Exp $
- Author:
- Bruno R. Preiss, P.Eng.
- See Also:
Container
|
Field Summary |
static java.lang.String |
copyright
|
|
Method Summary |
boolean |
hasMoreElements()
Tests whether there are still more objects to be enumerated. |
java.lang.Object |
nextElement()
Returns the next object to be enumerated. |
copyright
public static final java.lang.String copyright
hasMoreElements
public boolean hasMoreElements()
- Tests whether there are still more objects to be enumerated.
- Specified by:
hasMoreElements in interface java.util.Enumeration
- Returns:
- True if there are more objects to be enumerated; false otherwise.
nextElement
public java.lang.Object nextElement()
throws java.util.NoSuchElementException
- Returns the next object to be enumerated.
- Specified by:
nextElement in interface java.util.Enumeration
- Returns:
- The next object to be enumerated.
- Throws:
java.util.NoSuchElementException - If there are no objects left to be enumerated.