public enum AcceptAll extends Enum<AcceptAll> implements Predicate<CommandMessage<?>>, Serializable
Enum Constant and Description |
---|
INSTANCE
Singleton instance of the
AcceptAll 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 AcceptAll |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AcceptAll[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static AcceptAll[] values()
for (AcceptAll c : AcceptAll.values()) System.out.println(c);
public static AcceptAll 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–2017. All rights reserved.