Package org.apache.camel.support
Class ExpressionListComparator
- java.lang.Object
-
- org.apache.camel.support.ExpressionListComparator
-
- All Implemented Interfaces:
Comparator<org.apache.camel.Exchange>
public class ExpressionListComparator extends Object implements Comparator<org.apache.camel.Exchange>
An implementation ofComparatorwhich takes a list ofExpressionobjects which is evaluated on each exchange to compare them
-
-
Constructor Summary
Constructors Constructor Description ExpressionListComparator(List<org.apache.camel.Expression> expressions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(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
-
-
-
-
Constructor Detail
-
ExpressionListComparator
public ExpressionListComparator(List<org.apache.camel.Expression> expressions)
-
-
Method Detail
-
compare
public int compare(org.apache.camel.Exchange e1, org.apache.camel.Exchange e2)- Specified by:
comparein interfaceComparator<org.apache.camel.Exchange>
-
-