Class LogicalFunctions
- java.lang.Object
-
- net.sf.jasperreports.functions.standard.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 Summary
Constructors Constructor Description LogicalFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Boolean
AND(Boolean... arguments)
Returns true if all arguments are considered true, false otherwise.static Boolean
EQUALS(Object obj1, Object obj2)
Checks if the two specified objects are equal.static Boolean
FALSE()
Returns the logical value FALSE.static Object
IF(Boolean test, Object value1, Object value2)
Returns one of two values, depending on a test condition.static Boolean
NOT(Boolean boolValue)
Returns the negation of the specified boolean expression.static Boolean
OR(Boolean... arguments)
Returns true if any of the arguments is considered true, false otherwise.static Boolean
TRUE()
Returns the logical value TRUE.
-
-
-
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.
-
-