Class IntegerToBigDecimal
java.lang.Object
de.gebit.integrity.parameter.conversion.Conversion<Integer,BigDecimal>
de.gebit.integrity.parameter.conversion.conversions.java.numbers.IntegerToBigDecimal
A default Integrity conversion.
- Author:
- Rene Schneider - initial API and implementation
-
Nested Class Summary
Nested classes/interfaces inherited from class de.gebit.integrity.parameter.conversion.Conversion
Conversion.Priority -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(Integer aSource, Class<? extends BigDecimal> aTargetType, ConversionContext aConversionContext) Performs the conversion.Methods inherited from class de.gebit.integrity.parameter.conversion.Conversion
convertValueRecursive, convertValueToFormattedStringArrayRecursive, setVisitedObjects
-
Constructor Details
-
IntegerToBigDecimal
public IntegerToBigDecimal()
-
-
Method Details
-
convert
public BigDecimal convert(Integer aSource, Class<? extends BigDecimal> aTargetType, ConversionContext aConversionContext) throws ConversionFailedException Description copied from class:ConversionPerforms the conversion.- Specified by:
convertin classConversion<Integer,BigDecimal> - Parameters:
aSource- the source object to convertaTargetType- TODOaConversionContext- controls some conversion parameters and rules; may be null if the defaultConversionContextvalues shall be used- Returns:
- the converted object
- Throws:
ConversionFailedException- in case of conversion errors
-