public abstract class MappedEnumeration<T,I> extends Object implements Enumeration<T>
Enumeration that encapsulates another and
translates each element according to an abstract mapping function.
Implementations must provide mapped(Object).
| Constructor and Description |
|---|
MappedEnumeration(Enumeration<I> enumeration)
Wrapper Constructor given Enumeration to wrap.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreElements() |
T |
nextElement() |
public MappedEnumeration(Enumeration<I> enumeration)
enumeration - Enumeration to wrappublic 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.