public class SequenceComparator extends NaturalSortComparator
CreateMode
s will have a 10
character sequence attached to their node names.
SequenceComparator
is a Natural comparator used to compare lists
of objects with these appended sequences.NaturalSortComparator.Order
Modifier and Type | Field and Description |
---|---|
static int |
ZOOKEEPER_SEQUENCE_LENGTH |
Constructor and Description |
---|
SequenceComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(CharSequence sequencedNode,
CharSequence otherSequencedNode) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public static final int ZOOKEEPER_SEQUENCE_LENGTH
public int compare(CharSequence sequencedNode, CharSequence otherSequencedNode)
compare
in interface Comparator<CharSequence>
compare
in class NaturalSortComparator
Apache Camel