hudson.util
Class CompoundEnumeration<T>

java.lang.Object
  extended by hudson.util.CompoundEnumeration<T>
All Implemented Interfaces:
Enumeration<T>

public class CompoundEnumeration<T>
extends Object
implements Enumeration<T>

Enumeration that aggregates multiple Enumerations.

Author:
Kohsuke Kawaguchi

Constructor Summary
CompoundEnumeration(Enumeration... e)
           
CompoundEnumeration(Iterable<Enumeration<? extends T>> e)
           
 
Method Summary
 boolean hasMoreElements()
           
 T nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface Enumeration<T>

nextElement

public T nextElement()
              throws NoSuchElementException
Specified by:
nextElement in interface Enumeration<T>
Throws:
NoSuchElementException


Copyright © 2004-2013. All Rights Reserved.