-
- Type Parameters:
T- The object type selecting a field on.R- The type of the field.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface TypedSelector<R,T>
This class defines the lambda that receives an object of either a source or destination a mapping type. The lambda is implemented with calling the get-method to select the corresponding property. The mapping framework then detects the get-method invocation on the destination object and selects the corresponding property for further mapping configuration. The mapping configuration is specified with the surrounding configuration method likeMappingConfiguration.omitInDestination(FieldSelector),MappingConfiguration.omitInSource(FieldSelector).- Author:
- schuettec
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RselectField(T destination)This method is used to perform a get-method invocation of the specified destination object and returning its value.
-
-
-
Method Detail
-
selectField
R selectField(T destination)
This method is used to perform a get-method invocation of the specified destination object and returning its value. This invocation tells the mapper which property is to be selected for the following configuration and what type it has.- Parameters:
destination- The destination object to perform a get-method invocation on.- Returns:
- Returns the return value of the performed get-method call.
-
-