Interface ConverterExpression<S,D>

Type Parameters:
S - source type
D - 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

    Modifier and Type
    Method
    Description
    using(Converter<?,?> converter)
    Specifies the converter 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 Details

    • using

      MapExpression<D> using(Converter<?,?> converter)
      Specifies the converter to use for converting to the destination property hierarchy. When used with deep mapping the converter should convert to an instance of the last destination property. See the EDSL examples.
      Parameters:
      converter - to use when mapping the property
      Throws:
      IllegalStateException - if called from outside the context of PropertyMap.configure().