public enum DenyAll extends Enum<DenyAll> implements Predicate<CommandMessage<?>>, Serializable
| Enum Constant and Description |
|---|
INSTANCE
Singleton instance of the
DenyAll filter |
| Modifier and Type | Method and Description |
|---|---|
Predicate<CommandMessage<?>> |
and(Predicate<? super CommandMessage<?>> other) |
Predicate<CommandMessage<?>> |
negate() |
Predicate<CommandMessage<?>> |
or(Predicate<? super CommandMessage<?>> other) |
boolean |
test(CommandMessage commandMessage) |
String |
toString() |
static DenyAll |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DenyAll[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static DenyAll[] values()
for (DenyAll c : DenyAll.values()) System.out.println(c);
public static DenyAll valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic 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<?>> negate()
negate in interface Predicate<CommandMessage<?>>public Predicate<CommandMessage<?>> or(Predicate<? super CommandMessage<?>> other)
or in interface Predicate<CommandMessage<?>>Copyright © 2010–2018. All rights reserved.