public class AndCommandMessageFilter extends Object implements CommandMessageFilter
Constructor and Description |
---|
AndCommandMessageFilter(CommandMessageFilter first,
CommandMessageFilter second)
Initialize the filter to match when both the
first and the second filter match. |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(CommandMessage<?> commandMessage)
Indicates whether the given
commandMessage matches this filter. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, negate, or
public AndCommandMessageFilter(CommandMessageFilter first, CommandMessageFilter second)
first
and the second
filter match.first
- The first filter to matchsecond
- The second filter to matchpublic boolean matches(CommandMessage<?> commandMessage)
CommandMessageFilter
commandMessage
matches this filter.matches
in interface CommandMessageFilter
commandMessage
- The message to matchtrue
if the command matches, otherwise false
Copyright © 2010–2020. All rights reserved.