Package org.apache.camel.support
Class ExpressionComparator
- java.lang.Object
-
- org.apache.camel.support.ExpressionComparator
-
- All Implemented Interfaces:
Comparator<org.apache.camel.Exchange>
public class ExpressionComparator extends Object implements Comparator<org.apache.camel.Exchange>
An implementation ofComparator
that takes anExpression
which is evaluated on each exchange to be compared
-
-
Constructor Summary
Constructors Constructor Description ExpressionComparator(org.apache.camel.Expression expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(org.apache.camel.Exchange e1, org.apache.camel.Exchange e2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(org.apache.camel.Exchange e1, org.apache.camel.Exchange e2)
- Specified by:
compare
in interfaceComparator<org.apache.camel.Exchange>
-
-