Class Predicates
java.lang.Object
org.apache.jackrabbit.commons.predicate.Predicates
Static utility class to help working with
Predicates.- Since:
- Apache Jackrabbit 2.2
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Predicates
public Predicates()
-
-
Method Details
-
and
Creates an AND predicate over all the given component predicates. All the component predicates must evaluate totruefor the AND predicate to do so.- Parameters:
predicates- component predicates- Returns:
- AND predicate
-
or
Creates an OR predicate over all the given component predicates. At least one of the component predicates must evaluate totruefor the OR predicate to do so.- Parameters:
predicates- component predicates- Returns:
- OR predicate
-
not
Creates a NOT predicate for the given component predicate. The NOT predicate evaluates totruewhen the component predicate doesn't, and vice versa.- Parameters:
predicate- component predicate- Returns:
- NOT predicate
-