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, to
public AbstractNumberToStringConversion(boolean sourceTypeNumberSubclass)
public Set<Type> getToConversionImportTypes(ConversionContext conversionContext)
SimpleConversion
getToConversionImportTypes
in class SimpleConversion
conversionContext
- the conversion contextprotected boolean requiresDecimalFormat(ConversionContext conversionContext)
protected Set<Type> getFromConversionImportTypes(ConversionContext conversionContext)
SimpleConversion
getFromConversionImportTypes
in class SimpleConversion
conversionContext
- the conversion contextprotected List<Type> getFromConversionExceptionTypes(ConversionContext conversionContext)
getFromConversionExceptionTypes
in class SimpleConversion
Copyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.