Package org.jeasy.batch.core.converter
Class BigDecimalTypeConverter
- java.lang.Object
-
- org.jeasy.batch.core.converter.BigDecimalTypeConverter
-
- All Implemented Interfaces:
TypeConverter<java.lang.String,java.math.BigDecimal>
public class BigDecimalTypeConverter extends java.lang.Object implements TypeConverter<java.lang.String,java.math.BigDecimal>
BigDecimal type converter. Does not acceptnull
or empty strings.- Author:
- Mahmoud Ben Hassine ([email protected])
-
-
Constructor Summary
Constructors Constructor Description BigDecimalTypeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimal
convert(java.lang.String value)
Convert a source type into a target type.
-
-
-
Method Detail
-
convert
public java.math.BigDecimal convert(java.lang.String value)
Convert a source type into a target type.- Specified by:
convert
in interfaceTypeConverter<java.lang.String,java.math.BigDecimal>
- Parameters:
value
- the input value to convert- Returns:
- The converted value
-
-