All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.polyglotted.common.util.BoolUtil Maven / Gradle / Ivy

There is a newer version: 2020.05.2
Show newest version
package io.polyglotted.common.util;

@SuppressWarnings("WeakerAccess")
public abstract class BoolUtil {

    public static boolean isTrue(String truth) { return "true".equalsIgnoreCase(truth) || "".equals(truth); }

    public static boolean isFalse(String truth) { return "false".equalsIgnoreCase(truth) || "".equals(truth); }

    public static boolean isNotFalse(String truth) { return !"false".equalsIgnoreCase(truth); }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy