Package net.solarnetwork.util
Enum Class SearchFilter.LogicOperator
- All Implemented Interfaces:
Serializable,Comparable<SearchFilter.LogicOperator>,Constable
- Enclosing class:
- SearchFilter
A filter logic qualifier for multiple filters.
-
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 SearchFilter.LogicOperatorforKey(char key) Get an enum value from a key value.toString()static SearchFilter.LogicOperatorReturns the enum constant of this class with the specified name.static SearchFilter.LogicOperator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AND
Combine filters with a logical AND (the default operator). -
OR
Combine filters with a logical OR. -
NOT
Combine filters with a logical NOT.
-
-
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.LogicOperator>
-
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
-