Interface Transformer<FROM,TO>
-
- Type Parameters:
FROM
- Item to be transferred to TOTO
- TO to be transferred to Item
- All Superinterfaces:
BackwardCollectionTransformer<FROM,TO>
,BackwardTransformer<FROM,TO>
,ForwardCollectionTransformer<FROM,TO>
,ForwardTransformer<FROM,TO>
public interface Transformer<FROM,TO> extends ForwardTransformer<FROM,TO>, BackwardTransformer<FROM,TO>, ForwardCollectionTransformer<FROM,TO>, BackwardCollectionTransformer<FROM,TO>
Generic interface for a bidirectional Transformer between a domain class and a TO class or collections of those classes
- Since:
- 2.0
- Author:
- Oliver Krauss, Christoph Praschl
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Collection<TO>
transformFromCollection(Collection<FROM> f)
Transforms a Collection of FROM to a Collection of TOdefault Collection<FROM>
transformToCollection(Collection<TO> c)
Transforms a Collection of TO to a Collection of FROM-
Methods inherited from interface science.aist.jack.general.transformer.BackwardTransformer
transformTo
-
Methods inherited from interface science.aist.jack.general.transformer.ForwardTransformer
transformFrom
-
-
-
-
Method Detail
-
transformToCollection
default Collection<FROM> transformToCollection(Collection<TO> c)
Description copied from interface:BackwardCollectionTransformer
Transforms a Collection of TO to a Collection of FROM- Specified by:
transformToCollection
in interfaceBackwardCollectionTransformer<FROM,TO>
- Parameters:
c
- the collection to be transformed- Returns:
- the resulting collection
-
transformFromCollection
default Collection<TO> transformFromCollection(Collection<FROM> f)
Description copied from interface:ForwardCollectionTransformer
Transforms a Collection of FROM to a Collection of TO- Specified by:
transformFromCollection
in interfaceForwardCollectionTransformer<FROM,TO>
- Parameters:
f
- the collection to be transformed- Returns:
- the resulting collection
-
-