public class ToBooleanConverter extends Object implements Converter
Constructor and Description |
---|
ToBooleanConverter() |
Modifier and Type | Method and Description |
---|---|
Boolean |
convert(Class<?> targetClass,
String strVal)
Converts string values to an object of a bean property.
|
public ToBooleanConverter()
public Boolean 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.