public class StringToBooleanConverter extends Object implements TypeConverter
Constructor and Description |
---|
StringToBooleanConverter() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Object value,
Class<?> targetClass)
Returns true if and only if the converter can convert the passed value
to the passed class.
|
Object |
convert(Object value,
Class<?> targetClass)
Converts the passed value to the passed class.
|
public boolean accept(Object value, Class<?> targetClass)
TypeConverter
accept
in interface TypeConverter
value
- the value to convert, may be null.targetClass
- the target class, not null.public Object convert(Object value, Class<?> targetClass)
TypeConverter
convert
in interface TypeConverter
value
- the value to convert, may be null.targetClass
- the target class, not null.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.