Enum Class LogicBlock.Operator
- All Implemented Interfaces:
Serializable, Comparable<LogicBlock.Operator>, Constable
- Enclosing class:
LogicBlock
Logical operators supported by this block.
- Version:
- 1.0
- Author:
- ESOL
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLogical AND — output is true only when all inputs are true.Logical NAND — inverted AND.Logical NOR — inverted OR.Logical NOT — inverts a single input.Logical OR — output is true when any input is true.Logical XOR — exclusive OR, true when an odd number of inputs are true. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LogicBlock.OperatorReturns the enum constant of this class with the specified name.static LogicBlock.Operator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AND
Logical AND — output is true only when all inputs are true. -
OR
Logical OR — output is true when any input is true. -
NOT
Logical NOT — inverts a single input. Only the first input is used. -
NAND
Logical NAND — inverted AND. -
NOR
Logical NOR — inverted OR. -
XOR
Logical XOR — exclusive OR, true when an odd number of inputs are true.
-
-
Constructor Details
-
Operator
private Operator()
-
-
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
-