Enum Class CompositeCondition.Operator

java.lang.Object
java.lang.Enum<CompositeCondition.Operator>
cloud.opencode.base.rules.condition.CompositeCondition.Operator
All Implemented Interfaces:
Serializable, Comparable<CompositeCondition.Operator>, Constable
Enclosing class:
CompositeCondition

public static enum CompositeCondition.Operator extends Enum<CompositeCondition.Operator>
Logical operator for composite conditions 组合条件的逻辑运算符
Since:
JDK 25, opencode-base-rules V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Enum Constant Details

    • AND

      public static final CompositeCondition.Operator AND
      Logical AND - all conditions must be true | 逻辑AND - 所有条件必须为true
    • OR

      public static final CompositeCondition.Operator OR
      Logical OR - at least one condition must be true | 逻辑OR - 至少一个条件必须为true
    • NOT

      public static final CompositeCondition.Operator NOT
      Logical NOT - negates the first condition | 逻辑NOT - 否定第一个条件
  • Method Details

    • values

      public static CompositeCondition.Operator[] 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 CompositeCondition.Operator 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