org.melati.poem.util
Class FlattenedEnumeration<T>

Package class diagram package FlattenedEnumeration
java.lang.Object
  extended by org.melati.poem.util.FlattenedEnumeration<T>
All Implemented Interfaces:
Enumeration<T>

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

An Enumeration created by flattening an Enumeration of Enumerations or flattening two Enumerations .


Constructor Summary
FlattenedEnumeration(Enumeration<Enumeration<T>> enumerations)
          Constructor.
FlattenedEnumeration(Enumeration<T> a, Enumeration<T> b)
          Constructor given two Enumerations to flatten into one.
 
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

FlattenedEnumeration

public FlattenedEnumeration(Enumeration<Enumeration<T>> enumerations)
Constructor.

Parameters:
enumerations - an Enumeration of Enumerations

FlattenedEnumeration

public FlattenedEnumeration(Enumeration<T> a,
                            Enumeration<T> b)
Constructor given two Enumerations to flatten into one.

Parameters:
a - head Enumeration
b - tail Enumeration
Method Detail

hasMoreElements

public boolean hasMoreElements()

Specified by:
hasMoreElements in interface Enumeration<T>
See Also:
Enumeration.hasMoreElements()

nextElement

public T nextElement()

Specified by:
nextElement in interface Enumeration<T>
See Also:
Enumeration.nextElement()


Copyright © 2000-2010 PanEris. All Rights Reserved.