Enum Class DenyAll
- All Implemented Interfaces:
Serializable,Comparable<DenyAll>,Constable,CommandMessageFilter
A
CommandMessageFilter that denies all CommandMessages.- Since:
- 3.0
- Author:
- Koen Lavooij
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionand(CommandMessageFilter other) Returns a filter that matches when both this instance and the givenothermatch.booleanmatches(CommandMessage<?> message) Indicates whether the givencommandMessagematches this filter.negate()Returns a filter that matches when this instance doesn't, and vice versa.or(CommandMessageFilter other) Returns a filter that matches when either this instance or the givenothermatches.toString()static DenyAllReturns the enum constant of this class with the specified name.static DenyAll[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
Singleton instance of theDenyAllfilter.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
matches
Description copied from interface:CommandMessageFilterIndicates whether the givencommandMessagematches this filter.- Specified by:
matchesin interfaceCommandMessageFilter- Parameters:
message- the message to match- Returns:
trueif the command matches, otherwisefalse
-
and
Description copied from interface:CommandMessageFilterReturns a filter that matches when both this instance and the givenothermatch.- Specified by:
andin interfaceCommandMessageFilter- Parameters:
other- the other filter to match against- Returns:
- a filter that matches when both this instance and the other match
-
negate
Description copied from interface:CommandMessageFilterReturns a filter that matches when this instance doesn't, and vice versa.- Specified by:
negatein interfaceCommandMessageFilter- Returns:
- a filter that negates the result of this instance
-
or
Description copied from interface:CommandMessageFilterReturns a filter that matches when either this instance or the givenothermatches.- Specified by:
orin interfaceCommandMessageFilter- Parameters:
other- the other filter to match against- Returns:
- a filter that matches when either this instance or the other matches
-
toString
-