org.openide.util.enum
Class ArrayEnumeration
java.lang.Object
|
+--org.openide.util.enum.ArrayEnumeration
- All Implemented Interfaces:
- Enumeration
- public class ArrayEnumeration
- extends Object
- implements Enumeration
The class that presents specifiED (in constructor) array
as an Enumeration.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayEnumeration
public ArrayEnumeration(Object[] array)
- Constructs a new ArrayEnumeration for specified array
hasMoreElements
public boolean hasMoreElements()
- Tests if this enumeration contains more elements.
- Specified by:
hasMoreElements
in interface Enumeration
- Returns:
true
if this enumeration contains more elements;
false
otherwise.
nextElement
public Object nextElement()
- Returns the next element of this enumeration.
- Specified by:
nextElement
in interface Enumeration
- Returns:
- the next element of this enumeration.
- Throws:
NoSuchElementException
- if no more elements exist.
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.