public class SequenceNumberComparator extends Object implements Comparator<org.springframework.messaging.Message<?>>
Constructor and Description |
---|
SequenceNumberComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(org.springframework.messaging.Message<?> o1,
org.springframework.messaging.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, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(org.springframework.messaging.Message<?> o1, org.springframework.messaging.Message<?> o2)
compare
in interface Comparator<org.springframework.messaging.Message<?>>