org.apache.camel.processor.resequencer
Interface SequenceElementComparator<E>

All Superinterfaces:
Comparator<E>
All Known Subinterfaces:
ExpressionResultComparator
All Known Implementing Classes:
DefaultExchangeComparator

public interface SequenceElementComparator<E>
extends Comparator<E>

A strategy for comparing elements of a sequence.

Version:

Method Summary
 boolean predecessor(E o1, E o2)
          Returns true if o1 is an immediate predecessor of o2.
 boolean successor(E o1, E o2)
          Returns true if o1 is an immediate successor of o2.
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Method Detail

predecessor

boolean predecessor(E o1,
                    E o2)
Returns true if o1 is an immediate predecessor of o2.

Parameters:
o1 - a sequence element.
o2 - a sequence element.
Returns:
true if its an immediate predecessor

successor

boolean successor(E o1,
                  E o2)
Returns true if o1 is an immediate successor of o2.

Parameters:
o1 - a sequence element.
o2 - a sequence element.
Returns:
true if its an immediate successor


Apache CAMEL