In - Out - public class CollectionTransformer<In,Out> extends Object implements ETransformer<Iterable<In>,EList<Out>>
CollectionTransformer enables succinct transformation of collections
of objects utilising the ETransformer pattern.
CollectionTransformers are stateless and can be instantiated directly
and reused, or for convenience created using the static methods available on ETransformers.
On top of the regular from(Iterable) override this class offers
another method (from(Object...) which accepts varargs for convenience
in invocation.from(Iterable),
from(Object...)| Constructor and Description |
|---|
CollectionTransformer(ETransformer<In,Out> transformer)
Creates a new
CollectionTransformer which can be used to transform collections. |
public CollectionTransformer(ETransformer<In,Out> transformer)
Creates a new CollectionTransformer which can be used to transform collections.
Reverse transformations, that is using the from(Iterable) and from(Object...) methods will only work if the given ETransformer is an EBidiTransformer.
transformer - public EList<Out> from(In... in)
in - values to transformEList containing the transformed objects for the given
in parameters in the same order as they are suppliedpublic EList<Out> from(Iterable<In> in)
ETransformerCopyright © 2013 Atomic Leopard. All Rights Reserved.