Class BooleanUtils


  • public class BooleanUtils
    extends Object
    • Method Detail

      • toBoolean

        public static boolean toBoolean​(String booleanString)
        Returns the boolean value for the given boolean string.
        • 'true', '1' (internal representation) -> true
        • Others -> false
      • toBoolean

        public static boolean toBoolean​(Object booleanObject)
      • toInt

        public static int toInt​(String booleanString)
        Returns the int value (1 for true, 0 for false) for the given boolean string.
        • 'true', '1' (internal representation) -> '1'
        • Others -> '0'