public class CharacterConversion extends ObjectConversion<Character>
Constructor and Description |
---|
CharacterConversion()
Creates a Conversion from String to Character with default values to return when the input is null.
|
CharacterConversion(Character valueIfStringIsNull,
String valueIfObjectIsNull)
Creates a Conversion from String to Character with default values to return when the input is null.
|
Modifier and Type | Method and Description |
---|---|
protected Character |
fromString(String input)
Converts a String to a Character.
|
execute, fromInput, getValueIfObjectIsNull, getValueIfStringIsNull, revert, setValueIfObjectIsNull, setValueIfStringIsNull, undo
getValueOnNullInput, getValueOnNullOutput, setValueOnNullInput, setValueOnNullOutput
public CharacterConversion()
public CharacterConversion(Character valueIfStringIsNull, String valueIfObjectIsNull)
valueIfStringIsNull
- default Character 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 Character input is null. Used when revert(Character)
is invoked.protected Character fromString(String input)
fromString
in class ObjectConversion<Character>
input
- The String to be converted to TIllegalArgumentException
- if the input String length is not equal to 1, then an IllegalArgumentException is thrown.Copyright © 2023 uniVocity Software Pty Ltd. All rights reserved.