Package org.apache.camel.support
Class PredicateToExpressionAdapter
- java.lang.Object
-
- org.apache.camel.support.PredicateToExpressionAdapter
-
- All Implemented Interfaces:
org.apache.camel.Expression
public final class PredicateToExpressionAdapter extends Object implements org.apache.camel.Expression
To adaptPredicate
as anExpression
-
-
Constructor Summary
Constructors Constructor Description PredicateToExpressionAdapter(org.apache.camel.Predicate predicate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
evaluate(org.apache.camel.Exchange exchange, Class<T> type)
static org.apache.camel.Expression
toExpression(org.apache.camel.Predicate predicate)
Converts the given predicate into anExpression
String
toString()
-
-
-
Method Detail
-
evaluate
public <T> T evaluate(org.apache.camel.Exchange exchange, Class<T> type)
- Specified by:
evaluate
in interfaceorg.apache.camel.Expression
-
toExpression
public static org.apache.camel.Expression toExpression(org.apache.camel.Predicate predicate)
Converts the given predicate into anExpression
-
-