org.openide.util.enum
Class SequenceEnumeration
java.lang.Object
|
+--org.openide.util.enum.SequenceEnumeration
- All Implemented Interfaces:
- Enumeration
- public class SequenceEnumeration
- extends Object
- implements Enumeration
Composes more enumerations into one.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceEnumeration
public SequenceEnumeration(Enumeration en)
- Constructs new enumeration from already existing. The elements
of
en
should be also enumerations. The resulting
enumeration contains elements of such enumerations.
- Parameters:
en
- enumeration of Enumerations that should be sequenced
SequenceEnumeration
public SequenceEnumeration(Enumeration first,
Enumeration second)
- Composes two enumerations into one.
- Parameters:
first
- first enumerationsecond
- second enumeration
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface Enumeration
- Returns:
- true if we have more elements
nextElement
public Object nextElement()
- Specified by:
nextElement
in interface Enumeration
- Returns:
- next element
- Throws:
NoSuchElementException
- if there is no next element
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.