public class FlattenedEnumeration<T> extends Object implements Enumeration<T>
Enumeration created by flattening
an Enumeration of Enumerations
or flattening two Enumerations .| Constructor and Description |
|---|
FlattenedEnumeration(Enumeration<Enumeration<T>> enumerations)
Constructor.
|
FlattenedEnumeration(Enumeration<T> a,
Enumeration<T> b)
Constructor given two Enumerations to flatten into one.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreElements() |
T |
nextElement() |
public FlattenedEnumeration(Enumeration<Enumeration<T>> enumerations)
enumerations - an Enumeration of Enumerationspublic FlattenedEnumeration(Enumeration<T> a, Enumeration<T> b)
a - head Enumerationb - tail Enumerationpublic boolean hasMoreElements()
hasMoreElements in interface Enumeration<T>Enumeration.hasMoreElements()public T nextElement()
nextElement in interface Enumeration<T>Enumeration.nextElement()Copyright © 2000–2021 PanEris. All rights reserved.