Package net.solarnetwork.util
Enum Class SearchFilter.CompareOperator
- All Implemented Interfaces:
Serializable,Comparable<SearchFilter.CompareOperator>,Constable
- Enclosing class:
- SearchFilter
A comparison operator for a single filter.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApproximately match the attribute value to this attribute value.Match exactly this attribute value.Match attribute values greater than this attribute value.Match attribute values greater than or equal to this attribute value.Match attribute values less than this attribute value.Match attribute values less than or equal to this attribute value.Match anything but exactly this attribute value.For array comparison, an overlap operator.Match if the attribute name is present, regardless of its value.Match a substring (this attribute value) within attribute values.Match a substring (this attribute value) at the start of an attribute value. -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchFilter.CompareOperatorGet an enum value from a key value.toString()static SearchFilter.CompareOperatorReturns the enum constant of this class with the specified name.static SearchFilter.CompareOperator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EQUAL
Match exactly this attribute value. -
NOT_EQUAL
Match anything but exactly this attribute value. -
LESS_THAN
Match attribute values less than this attribute value. -
LESS_THAN_EQUAL
Match attribute values less than or equal to this attribute value. -
GREATER_THAN
Match attribute values greater than this attribute value. -
GREATER_THAN_EQUAL
Match attribute values greater than or equal to this attribute value. -
SUBSTRING
Match a substring (this attribute value) within attribute values. -
SUBSTRING_AT_START
Match a substring (this attribute value) at the start of an attribute value. -
PRESENT
Match if the attribute name is present, regardless of its value. -
APPROX
Approximately match the attribute value to this attribute value. -
OVERLAP
For array comparison, an overlap operator.
-
-
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
-
toString
- Overrides:
toStringin classEnum<SearchFilter.CompareOperator>
-
forKey
Get an enum value from a key value.- Parameters:
key- the key of the enum to get- Returns:
- the enum, or null if not supported
- Since:
- 1.1
-