Package org.modelmapper.builder
Interface ConditionExpression<S,D>
- Type Parameters:
S
- source typeD
- destination type
- All Superinterfaces:
ConverterExpression<S,
,D> MapExpression<D>
,ProviderExpression<S,
,D> SkipExpression<D>
Expresses a Condition.
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies thecondition
that must apply in order for mapping to take place for a particular destination property hierarchy.Methods inherited from interface org.modelmapper.builder.ConverterExpression
using
Methods inherited from interface org.modelmapper.builder.MapExpression
map, map, map
Methods inherited from interface org.modelmapper.builder.ProviderExpression
with
Methods inherited from interface org.modelmapper.builder.SkipExpression
skip, skip, skip
-
Method Details
-
when
Specifies thecondition
that must apply in order for mapping to take place for a particular destination property hierarchy. See theEDSL examples
.- Parameters:
condition
- that must apply when mapping the property- Throws:
IllegalStateException
- if called from outside the context ofPropertyMap.configure()
.
-