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