Class PropertyPathAndApplyBuilder<S,​D,​RD,​X,​RS,​E extends Exception>

  • 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 PropertyPathAndApplyBuilder<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 return null. In this case the property path is considered to have no value.
    • 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 MappingConfiguration instance.