public class SequenceNumberComparator extends Object implements Comparator<Message<?>>
| Constructor and Description |
|---|
SequenceNumberComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Message<?> o1,
Message<?> o2)
If both messages have a sequence number then compare that, otherwise if one has a sequence number and the other
doesn't then the numbered message comes first, or finally of neither has a sequence number then they are equal in
rank.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(Message<?> o1, Message<?> o2)
compare in interface Comparator<Message<?>>