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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransformEnumeration(Enumeration<W> wrapped, Transformer<E, W> transformer) -
Method Summary
Modifier and TypeMethodDescriptionprotected Enumeration<W> booleanstatic <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.
-
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:
hasMoreElementsin interfaceEnumeration<E>
-
nextElement
- Specified by:
nextElementin interfaceEnumeration<E>
-
asIterator
- Specified by:
asIteratorin interfaceEnumeration<E>
-
