S1
- The type of the element to be transformedS2
- The type of the elements to be transformed intopublic class OrdinalCollectionTransformer<S1,S2>
extends java.lang.Object
Constructor and Description |
---|
OrdinalCollectionTransformer(OrdinalTransformer<S1,S2> transformer)
Creates the CollectionTransformer
|
Modifier and Type | Method and Description |
---|---|
java.util.List<S2> |
transformToList(java.util.List<S1> in)
Applies the transformer to the given collection of objects, returning a List of correspondingly transformed objects
|
java.util.Set<S2> |
transformToSet(java.util.List<S1> in)
Applies the transformer to the given collection of objects, returning a Set of correspondingly transformed objects
|
public OrdinalCollectionTransformer(OrdinalTransformer<S1,S2> transformer)
transformer
- -public java.util.List<S2> transformToList(java.util.List<S1> in)
in
- A Collection of objects to be transformedpublic java.util.Set<S2> transformToSet(java.util.List<S1> in)
in
- A Collection of objects to be transformed