public class BigDecimalConversion extends ObjectConversion<BigDecimal>
| Constructor and Description |
|---|
BigDecimalConversion()
Creates a Conversion from String to BigDecimal with default values to return when the input is null.
|
BigDecimalConversion(BigDecimal valueIfStringIsNull,
String valueIfObjectIsNull)
Creates a Conversion from String to BigDecimal with default values to return when the input is null.
|
| Modifier and Type | Method and Description |
|---|---|
protected BigDecimal |
fromString(String input)
Converts a String to BigDecimal.
|
execute, fromInput, getValueIfObjectIsNull, getValueIfStringIsNull, revert, setValueIfObjectIsNull, setValueIfStringIsNull, undogetValueOnNullInput, getValueOnNullOutput, setValueOnNullInput, setValueOnNullOutputpublic BigDecimalConversion()
public BigDecimalConversion(BigDecimal valueIfStringIsNull, String valueIfObjectIsNull)
valueIfStringIsNull - default BigDecimal value to be returned when the input String is null. Used when ObjectConversion.execute(String) is invoked.valueIfObjectIsNull - default String value to be returned when a BigDecimal input is null. Used when revert(BigDecimal) is invoked.protected BigDecimal fromString(String input)
fromString in class ObjectConversion<BigDecimal>input - The String to be converted to TCopyright © 2018 Univocity Software Pty Ltd. All rights reserved.