public class BooleanConverter extends AbstractConverter
Boolean
, Number
and String
. A number value is considered false only if it is equals
to zero.Constructor and Description |
---|
BooleanConverter() |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
doConversion(Class<T> type,
Object value,
Locale locale,
String pattern)
Converts the specified input object into an output object of the
specified type.
|
convert, convert, convert, doesNullValueReturnNull, doesValueInstanceOfTypeReturnValue, getDefaultLocale, getDefaultPattern, setDefaultLocale, setDefaultPattern, setFallbackToRegisteredConverters, shouldFallbackToRegisteredConverters
protected <T> T doConversion(Class<T> type, Object value, Locale locale, String pattern) throws UnsupportedConversionTypeException
AbstractConverter
doConversion
in class AbstractConverter
T
- generics support for the data type specified.type
- data type to which the value should be converted.value
- the input value to be converted.locale
- locale to be used during conversion, if necessary.pattern
- converter specific conversion pattern, to be used during conversion, if necessary.UnsupportedConversionTypeException
- if this converter does not supports converting to the specified type.LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.