Enum Class FilterOperator

java.lang.Object
java.lang.Enum<FilterOperator>
com.oorian.data.FilterOperator
All Implemented Interfaces:
Serializable, Comparable<FilterOperator>, Constable

public enum FilterOperator extends Enum<FilterOperator>
Filter comparison operators for data provider queries.
Since:
2.1
Version:
1.0
Author:
Marvin P. Warble Jr.
  • Enum Constant Details

    • EQUALS

      public static final FilterOperator EQUALS
      Exact equality comparison.
    • NOT_EQUALS

      public static final FilterOperator NOT_EQUALS
      Not equal comparison.
    • CONTAINS

      public static final FilterOperator CONTAINS
      String contains (case-insensitive).
    • STARTS_WITH

      public static final FilterOperator STARTS_WITH
      String starts with (case-insensitive).
    • ENDS_WITH

      public static final FilterOperator ENDS_WITH
      String ends with (case-insensitive).
    • GREATER_THAN

      public static final FilterOperator GREATER_THAN
      Greater than comparison.
    • GREATER_THAN_OR_EQUALS

      public static final FilterOperator GREATER_THAN_OR_EQUALS
      Greater than or equal comparison.
    • LESS_THAN

      public static final FilterOperator LESS_THAN
      Less than comparison.
    • LESS_THAN_OR_EQUALS

      public static final FilterOperator LESS_THAN_OR_EQUALS
      Less than or equal comparison.
    • IS_NULL

      public static final FilterOperator IS_NULL
      Value is null.
    • IS_NOT_NULL

      public static final FilterOperator IS_NOT_NULL
      Value is not null.
  • Method Details

    • values

      public static FilterOperator[] 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 FilterOperator 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