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
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeLevels.Comparator
fromString
(String operator) Retrieve a Comparator from a string signstatic 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
-
EQUALS
-
LOWER
-
HIGHER
-
-
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
Retrieve a Comparator from a string sign- Parameters:
operator
- Operator as string- Returns:
- The Comparator that match with operator
-