T - the kind of condition that this condition can be combined with or compared topublic interface MessageCondition<T>
Message conditions can be combined (e.g. type + method-level conditions), matched to a specific Message, as well as compared to each other in the context of a Message to determine which one matches a request more closely.
| Modifier and Type | Method and Description | 
|---|---|
| T | combine(T other)Define the rules for combining this condition with another. | 
| int | compareTo(T other,
         Message<?> message)Compare this condition to another in the context of a specific message. | 
| T | getMatchingCondition(Message<?> message)Check if this condition matches the given Message and returns a
 potentially new condition with content tailored to the current message. | 
T combine(T other)
other - the condition to combine withT getMatchingCondition(Message<?> message)
null if there is no match.int compareTo(T other, Message<?> message)
getMatchingCondition(Message) to ensure they have content
 relevant to current message only.