Module com.remondis.remap
Package com.remondis.remap
Class PropertyPathAndApplyCollectionBuilder<S,D,RD,X,RS,E extends Exception>
- java.lang.Object
-
- com.remondis.remap.PropertyPathAndApplyCollectionBuilder<S,D,RD,X,RS,E>
-
- Type Parameters:
S- The source type of the mapper.D- The destination type of the mapper.RS- The type of the source field to map.X- The type of the value returned by the property path.RD- The type of the destination field.E- The exception that may be thrown by a property path at evaluation time.
public class PropertyPathAndApplyCollectionBuilder<S,D,RD,X,RS,E extends Exception> extends Object
This builder allows specifying a transformation function that is applied to a non-null result of a property path evaluation. The function will only be applied, if the evaluation of the property path returns a non-null value. The function may itself returnnull. In this case the property path is considered to have no value.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MappingConfiguration<S,D>apply(Function<X,RD> transformation)Specifies a function that is applied to the evaluation result of the property path.
-
-
-
Method Detail
-
apply
public MappingConfiguration<S,D> apply(Function<X,RD> transformation)
Specifies a function that is applied to the evaluation result of the property path. The function will only be applied in case the property path evaluates to a non-null value.- Parameters:
transformation- The function to transform the property path result value.- Returns:
- Returns the
MappingConfigurationinstance.
-
-