Class Booleans


  • public final class Booleans
    extends Object
    • Method Detail

      • isFalsy

        public static boolean isFalsy​(Object value)
        A value is considered falsy if it's null, "not found" as defined by Results.isNotFound(Object), {code false}, an empty collection, an empty map, an empty array, an empty string/char sequence or a number equal to zero.
        Parameters:
        value -
        Returns:
        true if the value is falsy