Class BooleanUtil

    • Constructor Detail

      • BooleanUtil

        public BooleanUtil()
    • Method Detail

      • parseBoolean

        public static boolean parseBoolean​(String booleanStr)
        Parameters:
        booleanStr - not trimmed string
        Returns:
        true, if represents values "true", "t", "yes", "y", or integer >= 1, false otherwise
      • isTrue

        public static boolean isTrue​(Boolean value)
        Checks if a Boolean value is true, handling null as false. - isTrue(null) = false - isTrue(false) = false - isTrue(true) = true