public final class PredicateToExpressionAdapter extends java.lang.Object implements Expression
Constructor and Description |
---|
PredicateToExpressionAdapter(Predicate predicate) |
Modifier and Type | Method and Description |
---|---|
<T> T |
evaluate(Exchange exchange,
java.lang.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 |
java.lang.String |
toString() |
public PredicateToExpressionAdapter(Predicate predicate)
public <T> T evaluate(Exchange exchange, java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public static Expression toExpression(Predicate predicate)
Expression
Copyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.