Package hudson.util
Class CompoundEnumeration<T>
- java.lang.Object
-
- hudson.util.CompoundEnumeration<T>
-
- All Implemented Interfaces:
Enumeration<T>
public class CompoundEnumeration<T> extends Object implements Enumeration<T>
Enumeration
that aggregates multipleEnumeration
s.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description CompoundEnumeration(Iterable<Enumeration<? extends T>> e)
CompoundEnumeration(Enumeration... e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMoreElements()
T
nextElement()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Enumeration
asIterator
-
-
-
-
Constructor Detail
-
CompoundEnumeration
public CompoundEnumeration(Enumeration... e)
-
CompoundEnumeration
public CompoundEnumeration(Iterable<Enumeration<? extends T>> e)
-
-
Method Detail
-
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interfaceEnumeration<T>
-
nextElement
public T nextElement() throws NoSuchElementException
- Specified by:
nextElement
in interfaceEnumeration<T>
- Throws:
NoSuchElementException
-
-