DestinationPatternsMessageCondition.compareTo

Compare the two conditions based on the destination patterns they contain. Patterns are compared one at a time, from top to bottom via {@link hunt.framework.util.PathMatcher#getPatternComparator(string)}. If all compared patterns match equally, but one instance has more patterns, it is considered a closer match. <p>It is assumed that both instances have been obtained via {@link #getMatchingCondition(Message)} to ensure they contain only patterns that match the request and are sorted with the best matches on top.

class DestinationPatternsMessageCondition
int
compareTo

Meta