Enum Class PermissionConditionType
- All Implemented Interfaces:
Serializable, Comparable<PermissionConditionType>, Constable
Declarative condition types for argument/command permissions.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll targets differ.Always check permission.Any target differs from sender.Any two targets differ.Targets are equal to each other.At least one target exists (non-null).Targets are not equal to each other.Require non-null target(s).Target differs from sender.Target matches sender. -
Method Summary
Modifier and TypeMethodDescriptionstatic PermissionConditionTypeReturns the enum constant of this class with the specified name.static PermissionConditionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Always check permission. -
NOT_NULL
Require non-null target(s). -
SELF
Target matches sender. -
OTHER
Target differs from sender. -
ANY_OTHER
Any target differs from sender. -
DISTINCT
Any two targets differ. -
ALL_DISTINCT
All targets differ. -
EQUALS
Targets are equal to each other. -
NOT_EQUALS
Targets are not equal to each other. -
EXISTS
At least one target exists (non-null).
-
-
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
-