Enum Class ComparisonOperator

java.lang.Object
java.lang.Enum<ComparisonOperator>
io.leandev.appfuse.search.ComparisonOperator
All Implemented Interfaces:
Serializable, Comparable<ComparisonOperator>, Constable

public enum ComparisonOperator extends Enum<ComparisonOperator>

RSQL 比較運算子列舉。

定義了 RSQL 查詢語法中支援的所有比較運算子,包含:

  • Enum Constant Details

    • EQUAL

      public static final ComparisonOperator EQUAL
      等於運算子 (==)
    • NOT_EQUAL

      public static final ComparisonOperator NOT_EQUAL
      不等於運算子 (!=)
    • GREATER_THAN

      public static final ComparisonOperator GREATER_THAN
      大於運算子 (>)
    • GREATER_THAN_OR_EQUAL

      public static final ComparisonOperator GREATER_THAN_OR_EQUAL
      大於或等於運算子 (>=)
    • LESS_THAN

      public static final ComparisonOperator LESS_THAN
      小於運算子 (<)
    • LESS_THAN_OR_EQUAL

      public static final ComparisonOperator LESS_THAN_OR_EQUAL
      小於或等於運算子 (<=)
    • IN

      public static final ComparisonOperator IN
      包含於集合運算子 (=in=)
    • NOT_IN

      public static final ComparisonOperator NOT_IN
      不包含於集合運算子 (=out=)
    • HAS

      public static final ComparisonOperator HAS
      包含運算子 (=has=),用於檢查集合是否包含特定元素
    • BETWEEN

      public static final ComparisonOperator BETWEEN
      區間運算子 (=between=),用於範圍查詢
    • IS

      public static final ComparisonOperator IS
      是運算子 (=is=),用於空值檢查
    • IS_NOT

      public static final ComparisonOperator IS_NOT
      不是運算子 (=isnt=),用於非空值檢查
  • Method Details

    • values

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