Class AbstractDecimalConverter<T extends Number>
java.lang.Object
ch.tocco.nice2.types.impl.conversions.AbstractDecimalConverter<T>
- All Implemented Interfaces:
Converter<T,
,BigDecimal> ReversibleConverter<T,
BigDecimal>
- Direct Known Subclasses:
IntToDecimalConverter
,LongToDecimalConverter
public abstract class AbstractDecimalConverter<T extends Number>
extends Object
implements ReversibleConverter<T,BigDecimal>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
doConvert
(BigDecimal value) reverseConvert
(BigDecimal value)
-
Constructor Details
-
AbstractDecimalConverter
public AbstractDecimalConverter()
-
-
Method Details
-
convert
- Specified by:
convert
in interfaceConverter<T extends Number,
BigDecimal> - Throws:
TypeConversionException
-
reverseConvert
- Specified by:
reverseConvert
in interfaceReversibleConverter<T extends Number,
BigDecimal> - Throws:
TypeConversionException
-
doConvert
-