Enum Class SearchFilter.LogicOperator

java.lang.Object
java.lang.Enum<SearchFilter.LogicOperator>
net.solarnetwork.util.SearchFilter.LogicOperator
All Implemented Interfaces:
Serializable, Comparable<SearchFilter.LogicOperator>, Constable
Enclosing class:
SearchFilter

public static enum SearchFilter.LogicOperator extends Enum<SearchFilter.LogicOperator>
A filter logic qualifier for multiple filters.
  • Enum Constant Details

  • Method Details

    • values

      public static SearchFilter.LogicOperator[] 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

      public static SearchFilter.LogicOperator valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<SearchFilter.LogicOperator>
    • forKey

      public static SearchFilter.LogicOperator forKey(char key)
      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