Class Predicates
- java.lang.Object
-
- org.apache.jackrabbit.commons.predicate.Predicates
-
-
Constructor Summary
Constructors Constructor Description Predicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Predicateand(Predicate... predicates)Creates an AND predicate over all the given component predicates.static Predicatenot(Predicate predicate)Creates a NOT predicate for the given component predicate.static Predicateor(Predicate... predicates)Creates an OR predicate over all the given component predicates.
-
-
-
Method Detail
-
and
public static Predicate and(Predicate... predicates)
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
public static Predicate or(Predicate... predicates)
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
-
-