public interface CommandMessageFilter extends Serializable
| Modifier and Type | Method and Description |
|---|---|
default CommandMessageFilter |
and(CommandMessageFilter other)
Returns a filter that matches when both this instance and the given
other match. |
boolean |
matches(CommandMessage<?> commandMessage)
Indicates whether the given
commandMessage matches this filter. |
default CommandMessageFilter |
negate()
Returns a filter that matches when this instance doesn't, and vice versa.
|
default CommandMessageFilter |
or(CommandMessageFilter other)
Returns a filter that matches when either this instance or the given
other matches. |
boolean matches(CommandMessage<?> commandMessage)
commandMessage matches this filter.commandMessage - The message to matchtrue if the command matches, otherwise falsedefault CommandMessageFilter and(CommandMessageFilter other)
other match.other - The other filter to match againstdefault CommandMessageFilter negate()
default CommandMessageFilter or(CommandMessageFilter other)
other matches.other - the other filter to match againstCopyright © 2010–2018. All rights reserved.