Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
Parameters:
name - the name of the enum constant to be returned.
public abstractbooleaneval(boolean arg1,
boolean arg2)
This method evaluates this conjunction for the given boolean arguments.
Parameters:
arg1 - the first argument.
arg2 - the second argument.
Returns:
the result of this conjunction applied to the given two arguments.
isNegating
public abstractbooleanisNegating()
Returns:
true if this Conjunction is negating the final result and therefore not left-associative,
false otherwise.
eval
publicbooleaneval(boolean... arguments)
Evaluates this Conjunction for the given boolean arguments. ATTENTION: The result is NOT the same as a applying the Conjunction left-associative as
binary operation because a negation is applied to the final
result. Example: NOR(a, b, c) = !(OR(a, b, c)) what is not the same as NOR(NOR(a, b), c).
Parameters:
arguments - the boolean values to evaluate.
Returns:
the result of this Conjunction applied to the given arguments.
evalEmpty
public abstractbooleanevalEmpty()
Returns:
the result of eval(boolean...) for no argument (an empty argument array).