Class WrapperToWrapperConversion

java.lang.Object
org.mapstruct.ap.internal.conversion.SimpleConversion
org.mapstruct.ap.internal.conversion.WrapperToWrapperConversion
All Implemented Interfaces:
ConversionProvider

public class WrapperToWrapperConversion extends SimpleConversion
Conversion between wrapper types such as Integer or Long.
Author:
Gunnar Morling
  • Constructor Details

    • WrapperToWrapperConversion

      public WrapperToWrapperConversion(Class<?> sourceType, Class<?> targetType)
  • Method Details

    • getToExpression

      public String getToExpression(ConversionContext conversionContext)
      Description copied from class: SimpleConversion
      Returns the conversion string from source to target. The placeholder <SOURCE> can be used to represent a reference to the source value.
      Specified by:
      getToExpression in class SimpleConversion
      Parameters:
      conversionContext - A context providing optional information required for creating the conversion.
      Returns:
      The conversion string from source to target
    • getFromExpression

      public String getFromExpression(ConversionContext conversionContext)
      Description copied from class: SimpleConversion
      Returns the conversion string from target to source. The placeholder <SOURCE> can be used to represent a reference to the target value.
      Specified by:
      getFromExpression in class SimpleConversion
      Parameters:
      conversionContext - ConversionContext providing optional information required for creating the conversion.
      Returns:
      The conversion string from target to source