public class OrCommandMessageFilter extends Object implements CommandMessageFilter
CommandMessageFilter implementation that matches whenever either of the supplied CommandMessageFilter instances match.| Constructor and Description |
|---|
OrCommandMessageFilter(CommandMessageFilter first,
CommandMessageFilter second)
Initialize the filter to match when either the
first or the second filter matches. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
matches(CommandMessage<?> commandMessage)
Indicates whether the given
commandMessage matches this filter. |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitand, negate, or@ConstructorProperties(value={"first","second"}) public OrCommandMessageFilter(CommandMessageFilter first, CommandMessageFilter second)
first or the second filter matches.first - the first filter to matchsecond - the second filter to matchpublic boolean matches(@Nonnull CommandMessage<?> commandMessage)
CommandMessageFiltercommandMessage matches this filter.matches in interface CommandMessageFiltercommandMessage - the message to matchtrue if the command matches, otherwise falseCopyright © 2010–2025. All rights reserved.