com.sun.enterprise.module.common_impl
Class FlattenEnumeration<T>

java.lang.Object
  extended by com.sun.enterprise.module.common_impl.FlattenEnumeration<T>
All Implemented Interfaces:
Enumeration<T>

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

Equivalent of FlattenIterator for enumeration

Author:
Jerome Dochez

Constructor Summary
FlattenEnumeration(Enumeration<Enumeration<T>> sources)
           
 
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

FlattenEnumeration

public FlattenEnumeration(Enumeration<Enumeration<T>> sources)
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 © 2013 Oracle Corporation. All Rights Reserved.