Package org.modelmapper.builder
Interface ConverterExpression<S,D>
-
- Type Parameters:
S
- source typeD
- destination type
- All Superinterfaces:
MapExpression<D>
,SkipExpression<D>
- All Known Subinterfaces:
ConditionExpression<S,D>
,ProviderExpression<S,D>
public interface ConverterExpression<S,D> extends SkipExpression<D>
Expresses a Converter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MapExpression<D>
using(Converter<?,?> converter)
Specifies theconverter
to use for converting to the destination property hierarchy.-
Methods inherited from interface org.modelmapper.builder.MapExpression
map, map, map
-
Methods inherited from interface org.modelmapper.builder.SkipExpression
skip, skip, skip
-
-
-
-
Method Detail
-
using
MapExpression<D> using(Converter<?,?> converter)
Specifies theconverter
to use for converting to the destination property hierarchy. When used with deep mapping theconverter
should convert to an instance of the last destination property. See theEDSL examples
.- Parameters:
converter
- to use when mapping the property- Throws:
IllegalStateException
- if called from outside the context ofPropertyMap.configure()
.
-
-