Conversion<java.lang.String,T>public class IntegerConversion extends ObjectConversion<java.lang.Integer>
| Constructor | 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 | Description |
|---|---|---|
protected java.lang.Integer |
fromString(java.lang.String input) |
Converts a String to Integer.
|
getValueOnNullInput, getValueOnNullOutput, setValueOnNullInput, setValueOnNullOutputclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, fromInput, getValueIfObjectIsNull, getValueIfStringIsNull, revert, setValueIfObjectIsNull, setValueIfStringIsNull, undopublic 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