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