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
Logical operator for composite conditions
组合条件的逻辑运算符
- Since:
- JDK 25, opencode-base-rules V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CompositeCondition.OperatorReturns the enum constant of this class with the specified name.static CompositeCondition.Operator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AND
Logical AND - all conditions must be true | 逻辑AND - 所有条件必须为true -
OR
Logical OR - at least one condition must be true | 逻辑OR - 至少一个条件必须为true -
NOT
Logical NOT - negates the first condition | 逻辑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
-