Enum Class AttributeLevels.Comparator
java.lang.Object
java.lang.Enum<AttributeLevels.Comparator>
fr.andross.banitem.utils.attributes.AttributeLevels.Comparator
- All Implemented Interfaces:
Serializable
,Comparable<AttributeLevels.Comparator>
,Constable
- Enclosing class:
AttributeLevels
An enum to define how to compare attribute levels
-
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 TypeMethodDescriptionstatic @NotNull AttributeLevels.Comparator
fromString
(@NotNull String operator) Retrieve a Comparator from a string sign.static AttributeLevels.Comparator
Returns the enum constant of this class with the specified name.static AttributeLevels.Comparator[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BETWEEN
If the attribute is between specific values. -
EQUALS
If the attribute is equal to a specific value. -
LOWER
If the attribute is below a specific value. -
HIGHER
If the attribute is above a specific value.
-
-
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
-
fromString
@NotNull public static @NotNull AttributeLevels.Comparator fromString(@NotNull @NotNull String operator) Retrieve a Comparator from a string sign.- Parameters:
operator
- Operator as string- Returns:
- The Comparator that match with operator
-