@PSOperatorWrapper public class LogicOperators extends java.lang.Object
| Constructor and Description |
|---|
LogicOperators() |
| Modifier and Type | Method and Description |
|---|---|
static Function<Item,java.lang.Boolean> |
and(Function<Item,java.lang.Boolean> predicate1,
Function<Item,java.lang.Boolean> predicate2)
Compute the logical AND of two functions.
|
static Function<Item,java.lang.Boolean> |
not(Function<Item,java.lang.Boolean> predicate)
Compute the logical NOT of a function.
|
static Function<Item,java.lang.Boolean> |
or(Function<Item,java.lang.Boolean> predicate1,
Function<Item,java.lang.Boolean> predicate2)
Compute the logical OR of two functions.
|
public static Function<Item,java.lang.Boolean> not(Function<Item,java.lang.Boolean> predicate)
predicate - the function to test an itempublic static Function<Item,java.lang.Boolean> and(Function<Item,java.lang.Boolean> predicate1, Function<Item,java.lang.Boolean> predicate2)
predicate1 - the first function to test an itempredicate2 - the second function to test an itempublic static Function<Item,java.lang.Boolean> or(Function<Item,java.lang.Boolean> predicate1, Function<Item,java.lang.Boolean> predicate2)
predicate1 - the first function to test an itempredicate2 - the second function to test an item