|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.processor.resequencer.DefaultExchangeComparator
public class DefaultExchangeComparator
Compares elements of an Exchange sequence by comparing
long values returned by this comparator's
expression.
| Constructor Summary | |
|---|---|
DefaultExchangeComparator()
|
|
| Method Summary | |
|---|---|
int |
compare(Exchange o1,
Exchange o2)
|
boolean |
isValid(Exchange exchange)
Returns true if the o1 can be used in this comparator. |
boolean |
predecessor(Exchange o1,
Exchange o2)
Returns true if o1 is an immediate predecessor
of o2. |
void |
setExpression(Expression expression)
Set the expression sed for comparing Exchanges. |
boolean |
successor(Exchange o1,
Exchange o2)
Returns true if o1 is an immediate successor
of o2. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public DefaultExchangeComparator()
| Method Detail |
|---|
public void setExpression(Expression expression)
ExpressionResultComparatorExchanges.
setExpression in interface ExpressionResultComparatorexpression - the expression
public boolean predecessor(Exchange o1,
Exchange o2)
SequenceElementComparatortrue if o1 is an immediate predecessor
of o2.
predecessor in interface SequenceElementComparator<Exchange>o1 - a sequence element.o2 - a sequence element.
public boolean successor(Exchange o1,
Exchange o2)
SequenceElementComparatortrue if o1 is an immediate successor
of o2.
successor in interface SequenceElementComparator<Exchange>o1 - a sequence element.o2 - a sequence element.
public int compare(Exchange o1,
Exchange o2)
compare in interface Comparator<Exchange>public boolean isValid(Exchange exchange)
SequenceElementComparatoro1 can be used in this comparator.
isValid in interface SequenceElementComparator<Exchange>exchange - a sequence element
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||