Enum ArenaConditionComparisonOperator
java.lang.Object
java.lang.Enum<ArenaConditionComparisonOperator>
de.marcely.bedwars.api.arena.picker.condition.ArenaConditionComparisonOperator
- All Implemented Interfaces:
Serializable
,Comparable<ArenaConditionComparisonOperator>
,java.lang.constant.Constable
All possible operators that may be used within a condition.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionVariable and value must be equal.In case the value is of typeArenaConditionVariableValueNumber
:
- Value must be greater (not equal!)In case the value is of typeArenaConditionVariableValueNumber
:
- Value must be greater than or equal to variable
In case the value is of typeArenaConditionVariableValueString
:
- Value string must being with the same letters as variables (letter casing is important)In case the value is of typeArenaConditionVariableValueNumber
:
- Value must be less (not equal!)In case the value is of typeArenaConditionVariableValueNumber
:
- Value must be less than or equal to variable
In case the value is of typeArenaConditionVariableValueString
:
- Value string must end with the same letters as variables (letter casing is important)Variable and value must not be equal. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ArenaConditionComparisonOperator
getByUsage
(String usage) Tries to obtain a operator given by itsgetUsage()
.getUsage()
Gets the explicit String that must be given to use this operator.Returns the enum constant of this type with the specified name.static ArenaConditionComparisonOperator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EQUAL
Variable and value must be equal. -
NOT_EQUAL
Variable and value must not be equal. -
GREATER_THAN
In case the value is of typeArenaConditionVariableValueNumber
:
- Value must be greater (not equal!) than variable
In case the value is of typeArenaConditionVariableValueString
:
- Value string must being with the same letters as variables (letter casing is being ignored) -
LESS_THAN
In case the value is of typeArenaConditionVariableValueNumber
:
- Value must be less (not equal!) than variable
In case the value is of typeArenaConditionVariableValueString
:
- Value string must end with the same letters as variables (letter casing is being ignored) -
GREATER_THAN_OR_EQUAL
In case the value is of typeArenaConditionVariableValueNumber
:
- Value must be greater than or equal to variable
In case the value is of typeArenaConditionVariableValueString
:
- Value string must being with the same letters as variables (letter casing is important) -
LESS_THAN_OR_EQUAL
In case the value is of typeArenaConditionVariableValueNumber
:
- Value must be less than or equal to variable
In case the value is of typeArenaConditionVariableValueString
:
- Value string must end with the same letters as variables (letter casing is important)
-
-
Field Details
-
VALUES
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getUsage
Gets the explicit String that must be given to use this operator.- Returns:
- The usage
-
getByUsage
Tries to obtain a operator given by itsgetUsage()
.- Parameters:
usage
- The usage that we are matching with- Returns:
- The given enum that matches. May be
null
in case there are none
-