public final class OrMessageMatcher<T> extends AbstractMessageMatcherComposite<T>
MessageMatcher that will return true if any of the passed in
MessageMatcher instances match.logger, LOGGERANY_MESSAGE| Constructor and Description |
|---|
OrMessageMatcher(java.util.List<MessageMatcher<T>> messageMatchers)
Creates a new instance
|
OrMessageMatcher(MessageMatcher<T>... messageMatchers)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(org.springframework.messaging.Message<? extends T> message)
Returns true if the
Message matches, else false |
getMessageMatchers, toStringpublic OrMessageMatcher(java.util.List<MessageMatcher<T>> messageMatchers)
messageMatchers - the MessageMatcher instances to try@SafeVarargs public OrMessageMatcher(MessageMatcher<T>... messageMatchers)
messageMatchers - the MessageMatcher instances to trypublic boolean matches(org.springframework.messaging.Message<? extends T> message)
MessageMatcherMessage matches, else falsemessage - the Message to match onMessage matches, else false