Package com.jbstrap.core.converters
Class BooleanConverter
java.lang.Object
com.jbstrap.core.converters.BooleanConverter
Class for converting text or numerical values into boolean values.
- Since:
- 4.0
- Author:
- JBStrap
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
parseBoolean
(Object value) Converts the specified value into a boolean value
-
Method Details
-
parseBoolean
Converts the specified value into a boolean value
The following values will be converted to
true
: 1, 1L, "1", "Y", "YES", "TRUE", "T", "ON". Capitalization isn't taken into account during converting. Every other value, includingnull
values are converted tofalse
- Parameters:
value
- The value that will be converted- Returns:
- The converted value
-