|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.builder.PredicateBuilder
public final class PredicateBuilder
A helper class for working with predicates
Method Summary | |
---|---|
static Predicate |
and(List<Predicate> predicates)
Concat the given predicates into a single predicate, which only matches if all the predicates matches. |
static Predicate |
and(Predicate left,
Predicate right)
A helper method to combine multiple predicates by a logical AND |
static Predicate |
constant(boolean answer)
A constant predicate. |
static Predicate |
contains(Expression left,
Expression right)
|
static Predicate |
endsWith(Expression left,
Expression right)
|
static Predicate |
in(Predicate... predicates)
A helper method to return true if any of the predicates matches. |
static Predicate |
isEqualTo(Expression left,
Expression right)
|
static Predicate |
isGreaterThan(Expression left,
Expression right)
|
static Predicate |
isGreaterThanOrEqualTo(Expression left,
Expression right)
|
static Predicate |
isInstanceOf(Expression expression,
Class<?> type)
|
static Predicate |
isLessThan(Expression left,
Expression right)
|
static Predicate |
isLessThanOrEqualTo(Expression left,
Expression right)
|
static Predicate |
isNotEqualTo(Expression left,
Expression right)
|
static Predicate |
isNotNull(Expression expression)
|
static Predicate |
isNull(Expression expression)
|
static Predicate |
not(Predicate predicate)
A helper method to return the logical not of the given predicate |
static Predicate |
or(Predicate left,
Predicate right)
A helper method to combine multiple predicates by a logical OR |
static Predicate |
regex(Expression expression,
Pattern pattern)
Returns a predicate which is true if the expression matches the given regular expression |
static Predicate |
regex(Expression expression,
String regex)
Returns a predicate which is true if the expression matches the given regular expression |
static Predicate |
startsWith(Expression left,
Expression right)
|
static Predicate |
toPredicate(Expression expression)
Converts the given expression into an Predicate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Predicate toPredicate(Expression expression)
Predicate
public static Predicate not(Predicate predicate)
public static Predicate and(Predicate left, Predicate right)
public static Predicate or(Predicate left, Predicate right)
public static Predicate in(Predicate... predicates)
public static Predicate isEqualTo(Expression left, Expression right)
public static Predicate isNotEqualTo(Expression left, Expression right)
public static Predicate isLessThan(Expression left, Expression right)
public static Predicate isLessThanOrEqualTo(Expression left, Expression right)
public static Predicate isGreaterThan(Expression left, Expression right)
public static Predicate isGreaterThanOrEqualTo(Expression left, Expression right)
public static Predicate contains(Expression left, Expression right)
public static Predicate isNull(Expression expression)
public static Predicate isNotNull(Expression expression)
public static Predicate isInstanceOf(Expression expression, Class<?> type)
public static Predicate startsWith(Expression left, Expression right)
public static Predicate endsWith(Expression left, Expression right)
public static Predicate regex(Expression expression, String regex)
expression
- the expression to evaluateregex
- the regular expression to match against
public static Predicate regex(Expression expression, Pattern pattern)
expression
- the expression to evaluatepattern
- the regular expression to match against
public static Predicate and(List<Predicate> predicates)
predicates
- predicates
public static Predicate constant(boolean answer)
answer
- the constant matches
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |