Package com.storedobject.common
Enum Class LogicalOperator
- All Implemented Interfaces:
Serializable,Comparable<LogicalOperator>,Constable
To represent logical operators. To be used with some sort of logical processing.
- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic LogicalOperatorReturns the enum constant of this class with the specified name.static LogicalOperator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OR
Logical OR operator. Represents the logical disjunction operation, where the result is true if at least one of the operands is true. -
AND
Logical AND operator. Represents the logical conjunction operation, where the result is true only if both operands are true. -
NOT_OR
Logical NOT OR operator. Represents the negation of the logical OR operation. The result is true only if both operands are false. -
NOT_AND
Logical NOT AND operator. Represents the negation of the logical AND operation. The result is true only if at least one of the operands is false.
-
-
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
-