Package org.modelmapper.builder
Interface ConfigurableConditionExpression<S,D>
- Type Parameters:
S- source typeD- destination type
- All Superinterfaces:
ConfigurableConverterExpression<S,,D> ConfigurableProviderExpression<S,,D> ReferenceMapExpression<S,D>
Represents mapping operations.
-
Method Summary
Modifier and TypeMethodDescriptionUsesconditionto determine the mapping should fire or skipMethods inherited from interface org.modelmapper.builder.ConfigurableConverterExpression
usingMethods inherited from interface org.modelmapper.builder.ConfigurableProviderExpression
withMethods inherited from interface org.modelmapper.builder.ReferenceMapExpression
map, skip, skip
-
Method Details
-
when
Usesconditionto determine the mapping should fire or skipwhen(condition).<String>map(Src::getCustomer, Dest::setCustomer) with(ctx -> ctx.getSource() != null).<Customer>map(Src::getCustomer, Dest::setCustomer)- Parameters:
condition- a condition to apply the mapping action should be invoked or not
-