Class BooleanUtils


  • public class BooleanUtils
    extends Object
    Helper class for boolean check.
    Author:
    Matteo a.k.a. Fugerit
    • Method Detail

      • isTrue

        public static boolean isTrue​(String s)
        Check if String is true NOTE: Only "1" and "true" are considered to be a boolean true, any other value return boolean false.
        Parameters:
        s - the String to check
        Returns:
        true if the input String is "1" or "true", false otherwise.