Class TransformIterable<E,W>
java.lang.Object
com.aoapps.collections.transformers.TransformIterable<E,W>
- All Implemented Interfaces:
Iterable<E>
- Direct Known Subclasses:
TransformCollection
Wraps an
Iterable
, with optional type conversion.- Author:
- AO Industries, Inc.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
TransformIterable
(Iterable<W> wrapped, Transformer<E, W> transformer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
iterator()
static <E> TransformIterable
<E, E> static <E,
W> TransformIterable <E, W> of
(Iterable<W> iterable, Transformer<E, W> transformer) Wraps an iterable.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
spliterator
-
Field Details
-
transformer
-
-
Constructor Details
-
TransformIterable
-
-
Method Details
-
of
Wraps an iterable.- If the given iterable is a
Collection
, then will return aTransformCollection
.
- See Also:
- If the given iterable is a
-
of
- See Also:
-
getWrapped
-
iterator
-
forEach
-