@FunctionalInterface 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(@Nonnull CommandMessage<?> commandMessage)
commandMessage matches this filter.commandMessage - the message to matchtrue if the command matches, otherwise falsedefault CommandMessageFilter and(@Nonnull CommandMessageFilter other)
other match.other - the other filter to match againstdefault CommandMessageFilter negate()
default CommandMessageFilter or(@Nonnull CommandMessageFilter other)
other matches.other - the other filter to match againstCopyright © 2010–2023. All rights reserved.