public class NegateCommandMessageFilter extends Object implements CommandMessageFilter
CommandMessageFilter
implementation that negates the result of another CommandMessageFilter
instance.Constructor and Description |
---|
NegateCommandMessageFilter(CommandMessageFilter filter)
Initialize a
CommandMessageFilter that negates results of the the given filter . |
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, wait
and, negate, or
@ConstructorProperties(value="filter") public NegateCommandMessageFilter(CommandMessageFilter filter)
CommandMessageFilter
that negates results of the the given filter
.filter
- the filter to negatepublic 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–2022. All rights reserved.