public class PrimitiveToWrapperConversion extends SimpleConversion
byte and wrapper types
such as Integer.| Constructor and Description |
|---|
PrimitiveToWrapperConversion(java.lang.Class<?> sourceType,
java.lang.Class<?> targetType) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFromExpression(ConversionContext conversionContext)
Returns the conversion string from target to source.
|
java.lang.String |
getToExpression(ConversionContext conversionContext)
Returns the conversion string from source to target.
|
from, getFromConversionImportTypes, getToConversionImportTypes, topublic PrimitiveToWrapperConversion(java.lang.Class<?> sourceType,
java.lang.Class<?> targetType)
public java.lang.String getToExpression(ConversionContext conversionContext)
SimpleConversion<SOURCE> can be used to represent a
reference to the source value.getToExpression in class SimpleConversionconversionContext - A context providing optional information required for creating the conversion.public java.lang.String getFromExpression(ConversionContext conversionContext)
SimpleConversion<SOURCE> can be used to represent a
reference to the target value.getFromExpression in class SimpleConversionconversionContext - ConversionContext providing optional information required for creating the conversion.Copyright © 2012-2014. All Rights Reserved.