public class ReverseConversion extends Object implements ConversionProvider
ConversionProvider
which creates the inversed conversions for a
given conversion provider.Modifier and Type | Method and Description |
---|---|
Assignment |
from(ConversionContext conversionContext)
Creates the conversion from target to source of a property mapping.
|
List<HelperMethod> |
getRequiredHelperMethods(ConversionContext conversionContext) |
static ReverseConversion |
inverse(ConversionProvider conversionProvider) |
Assignment |
to(ConversionContext conversionContext)
Creates the conversion from source to target of a property mapping.
|
public static ReverseConversion inverse(ConversionProvider conversionProvider)
public Assignment to(ConversionContext conversionContext)
ConversionProvider
to
in interface ConversionProvider
conversionContext
- ConversionContext providing optional information required for creating the conversion.public Assignment from(ConversionContext conversionContext)
ConversionProvider
from
in interface ConversionProvider
conversionContext
- ConversionContext providing optional information required for creating the conversion.public List<HelperMethod> getRequiredHelperMethods(ConversionContext conversionContext)
getRequiredHelperMethods
in interface ConversionProvider
conversionContext
- ConversionContext providing optional information required for creating the conversion.Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.