Class ExpressionComparator

  • All Implemented Interfaces:
    Comparator<org.apache.camel.Exchange>

    public class ExpressionComparator
    extends Object
    implements Comparator<org.apache.camel.Exchange>
    An implementation of Comparator that takes an Expression which is evaluated on each exchange to be compared
    • Constructor Detail

      • ExpressionComparator

        public ExpressionComparator​(org.apache.camel.Expression expression)
    • Method Detail

      • compare

        public int compare​(org.apache.camel.Exchange e1,
                           org.apache.camel.Exchange e2)
        Specified by:
        compare in interface Comparator<org.apache.camel.Exchange>