org.apache.maven.shared.runtime
Class CompositeEnumeration<T>

java.lang.Object
  extended by org.apache.maven.shared.runtime.CompositeEnumeration<T>
Type Parameters:
T - the element type of this enumeration
All Implemented Interfaces:
Enumeration<T>

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

Enumeration that spans two other enumerations.

Version:
$Id: CompositeEnumeration.java 831910 2009-11-02 15:05:33Z markh $
Author:
Mark Hobson

Constructor Summary
CompositeEnumeration(Enumeration<T> enumeration1, Enumeration<T> enumeration2)
           
 
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

CompositeEnumeration

public CompositeEnumeration(Enumeration<T> enumeration1,
                            Enumeration<T> enumeration2)
Method Detail

hasMoreElements

public boolean hasMoreElements()

Specified by:
hasMoreElements in interface Enumeration<T>

nextElement

public T nextElement()

Specified by:
nextElement in interface Enumeration<T>


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.