Class TransformEnumeration<E,W>
java.lang.Object
com.aoapps.collections.transformers.TransformEnumeration<E,W>
- All Implemented Interfaces:
Enumeration<E>
Wraps an
Enumeration
, with optional type conversion.- Author:
- AO Industries, Inc.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
TransformEnumeration
(Enumeration<W> wrapped, Transformer<E, W> transformer) -
Method Summary
Modifier and TypeMethodDescriptionprotected Enumeration
<W> boolean
static <E> TransformEnumeration
<E, E> of
(Enumeration<E> enumeration) static <E,
W> TransformEnumeration <E, W> of
(Enumeration<W> enumeration, Transformer<E, W> transformer) Wraps an enumeration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Enumeration
asIterator
-
Field Details
-
transformer
-
-
Constructor Details
-
TransformEnumeration
-
-
Method Details
-
of
public static <E,W> TransformEnumeration<E,W> of(Enumeration<W> enumeration, Transformer<E, W> transformer) Wraps an enumeration. -
of
- See Also:
-
getWrapped
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElements
in interfaceEnumeration<E>
-
nextElement
- Specified by:
nextElement
in interfaceEnumeration<E>
-