public class MappingEnumeration<T,R> extends Object implements Enumeration<R>
| Modifier and Type | Class and Description |
|---|---|
static interface |
MappingEnumeration.Mapper<T,R> |
| Modifier and Type | Field and Description |
|---|---|
protected Enumeration<T> |
enumeration |
protected MappingEnumeration.Mapper<T,R> |
mapper |
protected R |
nextElement |
| Constructor and Description |
|---|
MappingEnumeration(Enumeration<T> enumeration,
MappingEnumeration.Mapper<T,R> mapper) |
protected final Enumeration<T> enumeration
protected final MappingEnumeration.Mapper<T,R> mapper
protected R nextElement
public MappingEnumeration(Enumeration<T> enumeration, MappingEnumeration.Mapper<T,R> mapper)
public boolean hasMoreElements()
hasMoreElements in interface Enumeration<R>public R nextElement()
nextElement in interface Enumeration<R>protected final R nextMappedElement()