|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.BinaryPredicateSupport<E>
public abstract class BinaryPredicateSupport<E extends Exchange>
A useful base class for Predicate
implementations
Constructor Summary | |
---|---|
protected |
BinaryPredicateSupport(Expression<E> left,
Expression<E> right)
Deprecated. |
Method Summary | |
---|---|
protected String |
assertionFailureMessage(E exchange,
Object leftValue,
Object rightValue)
Deprecated. |
void |
assertMatches(String text,
E exchange)
Deprecated. Allows this predicate to be used nicely in testing to generate a nicely formatted exception and message if this predicate does not match for the given exchange. |
protected abstract String |
getOperationText()
Deprecated. |
boolean |
matches(E exchange)
Deprecated. Evaluates the predicate on the message exchange and returns true if this exchange matches the predicate |
protected abstract boolean |
matches(E exchange,
Object leftValue,
Object rightValue)
Deprecated. |
String |
toString()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected BinaryPredicateSupport(Expression<E> left, Expression<E> right)
Method Detail |
---|
public String toString()
toString
in class Object
public boolean matches(E exchange)
Predicate
matches
in interface Predicate<E extends Exchange>
exchange
- the message exchange
public void assertMatches(String text, E exchange)
Predicate
assertMatches
in interface Predicate<E extends Exchange>
text
- the description to use in the exception messageexchange
- the exchange to evaluate the expression onprotected abstract boolean matches(E exchange, Object leftValue, Object rightValue)
protected abstract String getOperationText()
protected String assertionFailureMessage(E exchange, Object leftValue, Object rightValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |