Class LogicalFunctions


  • public final class LogicalFunctions
    extends Object
    This class should maintain all functions that allows logic decisions, and belong to the Logical category.
    Author:
    Massimo Rabbi (mrabbi@users.sourceforge.net)
    • Constructor Detail

      • LogicalFunctions

        public LogicalFunctions()
    • Method Detail

      • AND

        public static Boolean AND​(Boolean... arguments)
        Returns true if all arguments are considered true, false otherwise. Argument must be a logical result or a direct boolean value.
      • FALSE

        public static Boolean FALSE()
        Returns the logical value FALSE.
      • TRUE

        public static Boolean TRUE()
        Returns the logical value TRUE.
      • NOT

        public static Boolean NOT​(Boolean boolValue)
        Returns the negation of the specified boolean expression.
      • OR

        public static Boolean OR​(Boolean... arguments)
        Returns true if any of the arguments is considered true, false otherwise. Argument must be a logical result or a direct boolean value.
      • IF

        public static Object IF​(Boolean test,
                                Object value1,
                                Object value2)
        Returns one of two values, depending on a test condition.
      • EQUALS

        public static Boolean EQUALS​(Object obj1,
                                     Object obj2)
        Checks if the two specified objects are equal.