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 TypeMethodDescriptionUsescondition
to determine the mapping should fire or skipMethods inherited from interface org.modelmapper.builder.ConfigurableConverterExpression
using
Methods inherited from interface org.modelmapper.builder.ConfigurableProviderExpression
with
Methods inherited from interface org.modelmapper.builder.ReferenceMapExpression
map, skip, skip
-
Method Details
-
when
Usescondition
to 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
-