public class ToFloatConverter extends Object implements Converter
Constructor and Description |
---|
ToFloatConverter() |
Modifier and Type | Method and Description |
---|---|
Float |
convert(Class<?> targetClass,
String strVal)
Converts string values to an object of a bean property.
|
public ToFloatConverter()
public Float convert(Class<?> targetClass, String strVal) throws ConvertException
Converter
convert
in interface Converter
targetClass
- type of propertystrVal
- value to convertConvertException
- in case if string value cannot be converted a target classCopyright © 2019. All rights reserved.