Class BooleanConverter

java.lang.Object
com.jbstrap.core.converters.BooleanConverter

public final class BooleanConverter extends Object
Class for converting text or numerical values into boolean values.
Since:
4.0
Author:
JBStrap
  • Method Details

    • parseBoolean

      public static boolean parseBoolean(Object value)

      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, including null values are converted to false

      Parameters:
      value - The value that will be converted
      Returns:
      The converted value