public class PrimitiveToWrapperConversion extends SimpleConversion
byte
and wrapper types
such as Integer
.Constructor and Description |
---|
PrimitiveToWrapperConversion(Class<?> sourceType,
Class<?> targetType) |
Modifier and Type | Method and Description |
---|---|
String |
getFromExpression(ConversionContext conversionContext)
Returns the conversion string from target to source.
|
String |
getToExpression(ConversionContext conversionContext)
Returns the conversion string from source to target.
|
from, getFromConversionExceptionTypes, getFromConversionImportTypes, getRequiredHelperMethods, getToConversionExceptionTypes, getToConversionImportTypes, to
public String getToExpression(ConversionContext conversionContext)
SimpleConversion
<SOURCE>
can be used to represent a
reference to the source value.getToExpression
in class SimpleConversion
conversionContext
- A context providing optional information required for creating the conversion.public String getFromExpression(ConversionContext conversionContext)
SimpleConversion
<SOURCE>
can be used to represent a
reference to the target value.getFromExpression
in class SimpleConversion
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.