public final class PredicateToExpressionAdapter extends Object implements Expression
Predicate
as an Expression
Constructor and Description |
---|
PredicateToExpressionAdapter(Predicate predicate) |
Modifier and Type | Method and Description |
---|---|
<T> T |
evaluate(Exchange exchange,
Class<T> type)
Returns the value of the expression on the given exchange
|
static Expression |
toExpression(Predicate predicate)
Converts the given predicate into an
Expression |
String |
toString() |
public PredicateToExpressionAdapter(Predicate predicate)
public <T> T evaluate(Exchange exchange, Class<T> type)
Expression
evaluate
in interface Expression
exchange
- the message exchange on which to evaluate the expressiontype
- the expected type of the evaluation resultpublic static Expression toExpression(Predicate predicate)
Expression
Apache Camel