org.jikesrvm.compilers.opt.util
Class CompoundEnumerator<T>

java.lang.Object
  extended by org.jikesrvm.compilers.opt.util.CompoundEnumerator<T>
All Implemented Interfaces:
Enumeration<T>

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


Field Summary
private  Enumeration<T> first
           
private  Enumeration<T> second
           
 
Constructor Summary
CompoundEnumerator(Enumeration<T> first, Enumeration<T> second)
           
 
Method Summary
 boolean hasMoreElements()
           
 T nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

first

private final Enumeration<T> first

second

private final Enumeration<T> second
Constructor Detail

CompoundEnumerator

public CompoundEnumerator(Enumeration<T> first,
                          Enumeration<T> second)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration<T>

nextElement

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