public class BooleanConverter extends AbstractConverter<Boolean>
Modifier and Type | Field and Description |
---|---|
static IConverter<Boolean> |
INSTANCE
The singleton instance for a boolean converter
|
Constructor and Description |
---|
BooleanConverter() |
Modifier and Type | Method and Description |
---|---|
Boolean |
convertToObject(String value,
Locale locale)
Converts the given
String value |
protected Class<Boolean> |
getTargetType() |
convertToString, newConversionException, parse
public static final IConverter<Boolean> INSTANCE
public Boolean convertToObject(String value, Locale locale)
IConverter
String
valuevalue
- The string value to convertlocale
- The locale used to convert the valueIConverter.convertToObject(java.lang.String,Locale)
protected Class<Boolean> getTargetType()
getTargetType
in class AbstractConverter<Boolean>
AbstractConverter.getTargetType()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.