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 theconditionthat must apply in order for mapping to take place for a particular destination property hierarchy.Methods inherited from interface org.modelmapper.builder.ConverterExpression
usingMethods inherited from interface org.modelmapper.builder.MapExpression
map, map, mapMethods inherited from interface org.modelmapper.builder.ProviderExpression
withMethods inherited from interface org.modelmapper.builder.SkipExpression
skip, skip, skip
-
Method Details
-
when
Specifies theconditionthat 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().
-