org.apache.camel.util
Class ExpressionListComparator<E extends Exchange>

java.lang.Object
  extended by org.apache.camel.util.ExpressionListComparator<E>
All Implemented Interfaces:
Comparator<E>

public class ExpressionListComparator<E extends Exchange>
extends Object
implements Comparator<E>

An implementation of Comparator which takes a list of Expression objects which is evaluated on each exchange to compare them

Version:
$Revision: 1.1 $

Constructor Summary
ExpressionListComparator(List<Expression<E>> expressions)
           
 
Method Summary
 int compare(E e1, E 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
 

Constructor Detail

ExpressionListComparator

public ExpressionListComparator(List<Expression<E>> expressions)
Method Detail

compare

public int compare(E e1,
                   E e2)
Specified by:
compare in interface Comparator<E extends Exchange>


Copyright © 2007 Apache Software Foundation. All Rights Reserved.