
public abstract class AbstractNumberToStringConversion extends SimpleConversion
PrimitiveToStringConversion, WrapperToStringConversion,
BigDecimalToStringConversion and BigIntegerToStringConversion
Contains shared utility methods.| Constructor and Description |
|---|
AbstractNumberToStringConversion(boolean sourceTypeNumberSubclass) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Type> |
getFromConversionExceptionTypes(ConversionContext conversionContext) |
protected Set<Type> |
getFromConversionImportTypes(ConversionContext conversionContext)
Returns a set with imported types of the "from" conversion.
|
Set<Type> |
getToConversionImportTypes(ConversionContext conversionContext)
Returns a set with imported types of the "to" conversion.
|
protected boolean |
requiresDecimalFormat(ConversionContext conversionContext) |
from, getFromExpression, getRequiredHelperMethods, getToConversionExceptionTypes, getToExpression, topublic AbstractNumberToStringConversion(boolean sourceTypeNumberSubclass)
public Set<Type> getToConversionImportTypes(ConversionContext conversionContext)
SimpleConversiongetToConversionImportTypes in class SimpleConversionconversionContext - the conversion contextprotected boolean requiresDecimalFormat(ConversionContext conversionContext)
protected Set<Type> getFromConversionImportTypes(ConversionContext conversionContext)
SimpleConversiongetFromConversionImportTypes in class SimpleConversionconversionContext - the conversion contextprotected List<Type> getFromConversionExceptionTypes(ConversionContext conversionContext)
getFromConversionExceptionTypes in class SimpleConversionCopyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.