Conversion<java.lang.String,T>
public class BigDecimalConversion extends ObjectConversion<java.math.BigDecimal>
Constructor | Description |
---|---|
BigDecimalConversion() |
Creates a Conversion from String to BigDecimal with default values to return when the input is null.
|
BigDecimalConversion(java.math.BigDecimal valueIfStringIsNull,
java.lang.String valueIfObjectIsNull) |
Creates a Conversion from String to BigDecimal with default values to return when the input is null.
|
Modifier and Type | Method | Description |
---|---|---|
protected java.math.BigDecimal |
fromString(java.lang.String input) |
Converts a String to BigDecimal.
|
getValueOnNullInput, getValueOnNullOutput, setValueOnNullInput, setValueOnNullOutput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, fromInput, getValueIfObjectIsNull, getValueIfStringIsNull, revert, setValueIfObjectIsNull, setValueIfStringIsNull, undo
public BigDecimalConversion()
public BigDecimalConversion(java.math.BigDecimal valueIfStringIsNull, java.lang.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 java.math.BigDecimal fromString(java.lang.String input)
fromString
in class ObjectConversion<java.math.BigDecimal>
input
- The String to be converted to T