public class LogicUtils
extends java.lang.Object
Constructor and Description |
---|
LogicUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
and(boolean... bools)
An and gate
|
static boolean |
buffer(boolean bool)
A buffer gate
|
static boolean |
nand(boolean... bools)
A nand gate
|
static boolean |
nor(boolean... bools)
A nor gate
|
static boolean |
not(boolean bool)
A not gate
|
static boolean |
or(boolean... bools)
An or gate
|
static boolean |
xnor(boolean... bools)
An xnor gate
|
static boolean |
xor(boolean... bools)
An xor gate
|
public static boolean buffer(boolean bool)
bool
- Inputpublic static boolean not(boolean bool)
bool
- Inputpublic static boolean or(boolean... bools)
bools
- Inputpublic static boolean nor(boolean... bools)
bools
- Inputpublic static boolean and(boolean... bools)
bools
- Inputpublic static boolean nand(boolean... bools)
bools
- Inputpublic static boolean xor(boolean... bools)
bools
- Inputpublic static boolean xnor(boolean... bools)
bools
- Input