org.apache.camel.util
Class PredicateToExpressionAdapter
java.lang.Object
org.apache.camel.util.PredicateToExpressionAdapter
- All Implemented Interfaces:
- Expression
public final class PredicateToExpressionAdapter
- extends Object
- implements Expression
PredicateToExpressionAdapter
public PredicateToExpressionAdapter(Predicate predicate)
evaluate
public <T> T evaluate(Exchange exchange,
Class<T> type)
- Description copied from interface:
Expression
- Returns the value of the expression on the given exchange
- Specified by:
evaluate
in interface Expression
- Parameters:
exchange
- the message exchange on which to evaluate the expressiontype
- the expected type of the evaluation result
- Returns:
- the value of the expression
toString
public String toString()
- Overrides:
toString
in class Object
toExpression
public static Expression toExpression(Predicate predicate)
- Converts the given predicate into an
Expression
Apache CAMEL