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.
|
public int compare(Message<?> o1, Message<?> o2)
compare
in interface java.util.Comparator<Message<?>>