Package org.spongepowered.api.data
Enum Class KeyValueMatcher.Operator
- All Implemented Interfaces:
- Serializable,- Comparable<KeyValueMatcher.Operator>,- Constable
- Enclosing interface:
- KeyValueMatcher<V>
Represents a operator to match the
 values of a key query.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionMatches when the key and the matcher values are equal.Matches when the key is excluded from the matcher value.Matches when the key value is greater compared to the matcher value.Matches when the key value is greater or equal compared to the matcher value.Matches when the key value is included in the matcher value.Matches when the key value is less compared to the matcher value.Matches when the key value is less or equal compared to the matcher value.Matches when the key and the matcher values are equal.
- 
Method SummaryModifier and TypeMethodDescriptionstatic KeyValueMatcher.OperatorReturns the enum constant of this class with the specified name.static KeyValueMatcher.Operator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
EQUALMatches when the key and the matcher values are equal.
- 
NOT_EQUALMatches when the key and the matcher values are equal.
- 
GREATERMatches when the key value is greater compared to the matcher value.
- 
GREATER_OR_EQUALMatches when the key value is greater or equal compared to the matcher value.
- 
LESSMatches when the key value is less compared to the matcher value.
- 
LESS_OR_EQUALMatches when the key value is less or equal compared to the matcher value.
- 
INCLUDESMatches when the key value is included in the matcher value. For example, when a collection has a subset of elements of another collection.
- 
EXCLUDESMatches when the key is excluded from the matcher value. This is the inverted operator ofINCLUDES.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-