|
||||||||||
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
|
and(Predicate<E> left,
Predicate<E> right)
A helper method to combine multiple predicates by a logical AND |
|
static
|
contains(Expression<E> left,
Expression<E> right)
|
|
static
|
isEqualTo(Expression<E> left,
Expression<E> right)
|
|
static
|
isGreaterThan(Expression<E> left,
Expression<E> right)
|
|
static
|
isGreaterThanOrEqualTo(Expression<E> left,
Expression<E> right)
|
|
static
|
isInstanceOf(Expression<E> expression,
Class type)
|
|
static
|
isLessThan(Expression<E> left,
Expression<E> right)
|
|
static
|
isLessThanOrEqualTo(Expression<E> left,
Expression<E> right)
|
|
static
|
isNotEqualTo(Expression<E> left,
Expression<E> right)
|
|
static
|
isNotNull(Expression<E> expression)
|
|
static
|
isNull(Expression<E> expression)
|
|
static
|
not(Predicate<E> predicate)
A helper method to return the logical not of the given predicate |
|
static
|
or(Predicate<E> left,
Predicate<E> right)
A helper method to combine multiple predicates by a logical OR |
|
static
|
regex(Expression<E> expression,
Pattern pattern)
Returns a predicate which is true if the expression matches the given regular expression |
|
static
|
regex(Expression<E> expression,
String regex)
Returns a predicate which is true if the expression matches the given regular expression |
|
static
|
toPredicate(Expression<E> 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 <E extends Exchange> Predicate<E> toPredicate(Expression<E> expression)
Predicate
public static <E extends Exchange> Predicate<E> not(Predicate<E> predicate)
public static <E extends Exchange> Predicate<E> and(Predicate<E> left, Predicate<E> right)
public static <E extends Exchange> Predicate<E> or(Predicate<E> left, Predicate<E> right)
public static <E extends Exchange> Predicate<E> isEqualTo(Expression<E> left, Expression<E> right)
public static <E extends Exchange> Predicate<E> isNotEqualTo(Expression<E> left, Expression<E> right)
public static <E extends Exchange> Predicate<E> isLessThan(Expression<E> left, Expression<E> right)
public static <E extends Exchange> Predicate<E> isLessThanOrEqualTo(Expression<E> left, Expression<E> right)
public static <E extends Exchange> Predicate<E> isGreaterThan(Expression<E> left, Expression<E> right)
public static <E extends Exchange> Predicate<E> isGreaterThanOrEqualTo(Expression<E> left, Expression<E> right)
public static <E extends Exchange> Predicate<E> contains(Expression<E> left, Expression<E> right)
public static <E extends Exchange> Predicate<E> isNull(Expression<E> expression)
public static <E extends Exchange> Predicate<E> isNotNull(Expression<E> expression)
public static <E extends Exchange> Predicate<E> isInstanceOf(Expression<E> expression, Class type)
public static <E extends Exchange> Predicate<E> regex(Expression<E> expression, String regex)
expression
- the expression to evaluateregex
- the regular expression to match against
public static <E extends Exchange> Predicate<E> regex(Expression<E> expression, Pattern pattern)
expression
- the expression to evaluatepattern
- the regular expression to match against
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |