public class DenyCommandNameFilter extends Object implements Predicate<CommandMessage<?>>, Serializable
| Constructor and Description |
|---|
DenyCommandNameFilter(Set<String> commandNames)
Initializes a
DenyCommandNameFilter from the given set of commandNames. |
DenyCommandNameFilter(String commandName)
Initializes a
DenyCommandNameFilter for a single commandName. |
| Modifier and Type | Method and Description |
|---|---|
Predicate<CommandMessage<?>> |
and(Predicate<? super CommandMessage<?>> other) |
boolean |
equals(Object o) |
int |
hashCode() |
Predicate<CommandMessage<?>> |
or(Predicate<? super CommandMessage<?>> other) |
boolean |
test(CommandMessage commandMessage) |
String |
toString() |
public DenyCommandNameFilter(Set<String> commandNames)
DenyCommandNameFilter from the given set of commandNames. Commands with a name that
is present in this set will be blocked by this filter.commandNames - the names of commands blocked by this filterpublic DenyCommandNameFilter(String commandName)
DenyCommandNameFilter for a single commandName. Commands with a name equal
to the given commandName will be blocked by this filter.commandName - the name of the command blocked by this filterpublic boolean test(CommandMessage commandMessage)
test in interface Predicate<CommandMessage<?>>public Predicate<CommandMessage<?>> and(Predicate<? super CommandMessage<?>> other)
and in interface Predicate<CommandMessage<?>>public Predicate<CommandMessage<?>> or(Predicate<? super CommandMessage<?>> other)
or in interface Predicate<CommandMessage<?>>Copyright © 2010–2018. All rights reserved.