public class IntegerConversion extends ObjectConversion<java.lang.Integer>
Constructor and Description |
---|
IntegerConversion()
Creates a Conversion from String to Integer with default values to return when the input is null.
|
IntegerConversion(java.lang.Integer valueIfStringIsNull,
java.lang.String valueIfObjectIsNull)
Creates a Conversion from String to Integer with default values to return when the input is null.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Integer |
fromString(java.lang.String input)
Converts a String to Integer.
|
execute, fromInput, getValueIfObjectIsNull, getValueIfStringIsNull, revert, setValueIfObjectIsNull, setValueIfStringIsNull, undo
getValueOnNullInput, getValueOnNullOutput, setValueOnNullInput, setValueOnNullOutput
public IntegerConversion()
public IntegerConversion(java.lang.Integer valueIfStringIsNull, java.lang.String valueIfObjectIsNull)
valueIfStringIsNull
- default Integer 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 Integer input is null. Used when revert(Integer)
is invoked.protected java.lang.Integer fromString(java.lang.String input)
fromString
in class ObjectConversion<java.lang.Integer>
input
- The String to be converted to T