Package io.github.javaf
Class Boolean
- java.lang.Object
-
- io.github.javaf.Boolean
-
public final class Boolean extends Object
-
-
Constructor Summary
Constructors Constructor Description Boolean()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
and()
Checks if all values are true.static boolean
andβ(boolean a)
Checks if all values are true.static boolean
andβ(boolean a, boolean b)
Checks if all values are true.static boolean
andβ(boolean a, boolean b, boolean c)
Checks if all values are true.static boolean
andβ(boolean a, boolean b, boolean c, boolean d)
Checks if all values are true.static boolean
andβ(boolean a, boolean b, boolean c, boolean d, boolean e)
Checks if all values are true.static boolean
andβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f)
Checks if all values are true.static boolean
andβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g)
Checks if all values are true.static boolean
andβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g, boolean h)
Checks if all values are true.static int
count()
Counts no.static int
countβ(boolean a)
Counts no.static int
countβ(boolean a, boolean b)
Counts no.static int
countβ(boolean a, boolean b, boolean c)
Counts no.static int
countβ(boolean a, boolean b, boolean c, boolean d)
Counts no.static int
countβ(boolean a, boolean b, boolean c, boolean d, boolean e)
Counts no.static int
countβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f)
Counts no.static int
countβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g)
Counts no.static int
countβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g, boolean h)
Counts no.static boolean
eqβ(boolean a, boolean b)
Checks if antecedent β consequent (a β b).static boolean
eqvβ(boolean a, boolean b)
Checks if antecedent β consequent (a β b).static boolean
impβ(boolean a, boolean b)
Checks if antecedent β consequent (a β b).static boolean
implyβ(boolean a, boolean b)
Checks if antecedent β consequent (a β b).static boolean
nand()
Checks if any value is false.static boolean
nandβ(boolean a)
Checks if any value is false.static boolean
nandβ(boolean a, boolean b)
Checks if any value is false.static boolean
nandβ(boolean a, boolean b, boolean c)
Checks if any value is false.static boolean
nandβ(boolean a, boolean b, boolean c, boolean d)
Checks if any value is false.static boolean
nandβ(boolean a, boolean b, boolean c, boolean d, boolean e)
Checks if any value is false.static boolean
nandβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f)
Checks if any value is false.static boolean
nandβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g)
Checks if any value is false.static boolean
nandβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g, boolean h)
Checks if any value is false.static boolean
neqβ(boolean a, boolean b)
Checks if antecedent β consequent (a β b).static boolean
nimplyβ(boolean a, boolean b)
Checks if antecedent β consequent (a β b).static boolean
nor()
Checks if all values are false.static boolean
norβ(boolean a)
Checks if all values are false.static boolean
norβ(boolean a, boolean b)
Checks if all values are false.static boolean
norβ(boolean a, boolean b, boolean c)
Checks if all values are false.static boolean
norβ(boolean a, boolean b, boolean c, boolean d)
Checks if all values are false.static boolean
norβ(boolean a, boolean b, boolean c, boolean d, boolean e)
Checks if all values are false.static boolean
norβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f)
Checks if all values are false.static boolean
norβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g)
Checks if all values are false.static boolean
norβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g, boolean h)
Checks if all values are false.static boolean
notβ(boolean a)
Checks if value is false.static boolean
or()
Checks if any value is true.static boolean
orβ(boolean a)
Checks if any value is true.static boolean
orβ(boolean a, boolean b)
Checks if any value is true.static boolean
orβ(boolean a, boolean b, boolean c)
Checks if any value is true.static boolean
orβ(boolean a, boolean b, boolean c, boolean d)
Checks if any value is true.static boolean
orβ(boolean a, boolean b, boolean c, boolean d, boolean e)
Checks if any value is true.static boolean
orβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f)
Checks if any value is true.static boolean
orβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g)
Checks if any value is true.static boolean
orβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g, boolean h)
Checks if any value is true.static boolean
parseβ(String s)
Converts string to boolean.static boolean
selectβ(int i)
Checks if ith value is true.static boolean
selectβ(int i, boolean a)
Checks if ith value is true.static boolean
selectβ(int i, boolean a, boolean b)
Checks if ith value is true.static boolean
selectβ(int i, boolean a, boolean b, boolean c)
Checks if ith value is true.static boolean
selectβ(int i, boolean a, boolean b, boolean c, boolean d)
Checks if ith value is true.static boolean
selectβ(int i, boolean a, boolean b, boolean c, boolean d, boolean e)
Checks if ith value is true.static boolean
selectβ(int i, boolean a, boolean b, boolean c, boolean d, boolean e, boolean f)
Checks if ith value is true.static boolean
selectβ(int i, boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g)
Checks if ith value is true.static boolean
selectβ(int i, boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g, boolean h)
Checks if ith value is true.static boolean
xnor()
Checks if even no.static boolean
xnorβ(boolean a)
Checks if even no.static boolean
xnorβ(boolean a, boolean b)
Checks if even no.static boolean
xnorβ(boolean a, boolean b, boolean c)
Checks if even no.static boolean
xnorβ(boolean a, boolean b, boolean c, boolean d)
Checks if even no.static boolean
xnorβ(boolean a, boolean b, boolean c, boolean d, boolean e)
Checks if even no.static boolean
xnorβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f)
Checks if even no.static boolean
xnorβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g)
Checks if even no.static boolean
xnorβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g, boolean h)
Checks if even no.static boolean
xor()
Checks if odd no.static boolean
xorβ(boolean a)
Checks if odd no.static boolean
xorβ(boolean a, boolean b)
Checks if odd no.static boolean
xorβ(boolean a, boolean b, boolean c)
Checks if odd no.static boolean
xorβ(boolean a, boolean b, boolean c, boolean d)
Checks if odd no.static boolean
xorβ(boolean a, boolean b, boolean c, boolean d, boolean e)
Checks if odd no.static boolean
xorβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f)
Checks if odd no.static boolean
xorβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g)
Checks if odd no.static boolean
xorβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g, boolean h)
Checks if odd no.
-
-
-
Method Detail
-
parse
public static boolean parseβ(String s)
Converts string to boolean. π- Parameters:
s
- a string- Returns:
- result
parse("1") == true parse("truthy") == true parse("not off") == true parse("not true") == false parse("inactive") == false parse("disabled") == false
-
not
public static boolean notβ(boolean a)
Checks if value is false. π- Parameters:
a
- a boolean- Returns:
- result
not(false) == true not(true) == false
-
eq
public static boolean eqβ(boolean a, boolean b)
Checks if antecedent β consequent (a β b). π- Parameters:
a
- antecedentb
- consequent- Returns:
- result
eq(true, true) == true eq(false, false) == true eq(true, false) == false eq(false, true) == false
-
neq
public static boolean neqβ(boolean a, boolean b)
Checks if antecedent β consequent (a β b). π- Parameters:
a
- antecedentb
- consequent- Returns:
- result
neq(true, false) == true neq(false, true) == true neq(true, true) == false neq(false, false) == false
-
imply
public static boolean implyβ(boolean a, boolean b)
Checks if antecedent β consequent (a β b). π- Parameters:
a
- antecedentb
- consequent- Returns:
- result
imply(true, true) == true imply(false, true) == true imply(false, false) == true imply(true, false) == false
-
nimply
public static boolean nimplyβ(boolean a, boolean b)
Checks if antecedent β consequent (a β b). π- Parameters:
a
- antecedentb
- consequent- Returns:
- result
nimply(true, false) == true nimply(true, true) == false nimply(false, true) == false nimply(false, false) == false
-
eqv
public static boolean eqvβ(boolean a, boolean b)
Checks if antecedent β consequent (a β b). π- Parameters:
a
- antecedentb
- consequent- Returns:
- result
eqv(true, true) == true eqv(false, false) == true eqv(true, false) == false eqv(false, true) == false
-
imp
public static boolean impβ(boolean a, boolean b)
Checks if antecedent β consequent (a β b). π- Parameters:
a
- antecedentb
- consequent- Returns:
- result
imp(true, true) == true imp(false, true) == true imp(false, false) == true imp(true, false) == false
-
and
public static boolean and()
Checks if all values are true. π- Returns:
- result
and(true, true) == true and(true, false) == false and(true, true, true, true) == true and(true, false, true, true) == false
-
and
public static boolean andβ(boolean a)
Checks if all values are true. π- Parameters:
a
- 1st boolean- Returns:
- result
and(true, true) == true and(true, false) == false and(true, true, true, true) == true and(true, false, true, true) == false
-
and
public static boolean andβ(boolean a, boolean b)
Checks if all values are true. π- Parameters:
a
- 1st booleanb
- 2nd boolean- Returns:
- result
and(true, true) == true and(true, false) == false and(true, true, true, true) == true and(true, false, true, true) == false
-
and
public static boolean andβ(boolean a, boolean b, boolean c)
Checks if all values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd boolean- Returns:
- result
and(true, true) == true and(true, false) == false and(true, true, true, true) == true and(true, false, true, true) == false
-
and
public static boolean andβ(boolean a, boolean b, boolean c, boolean d)
Checks if all values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th boolean- Returns:
- result
and(true, true) == true and(true, false) == false and(true, true, true, true) == true and(true, false, true, true) == false
-
and
public static boolean andβ(boolean a, boolean b, boolean c, boolean d, boolean e)
Checks if all values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th boolean- Returns:
- result
and(true, true) == true and(true, false) == false and(true, true, true, true) == true and(true, false, true, true) == false
-
and
public static boolean andβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f)
Checks if all values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th boolean- Returns:
- result
and(true, true) == true and(true, false) == false and(true, true, true, true) == true and(true, false, true, true) == false
-
and
public static boolean andβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g)
Checks if all values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th booleang
- 7th boolean- Returns:
- result
and(true, true) == true and(true, false) == false and(true, true, true, true) == true and(true, false, true, true) == false
-
and
public static boolean andβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g, boolean h)
Checks if all values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th booleang
- 7th booleanh
- 8th boolean- Returns:
- result
and(true, true) == true and(true, false) == false and(true, true, true, true) == true and(true, false, true, true) == false
-
or
public static boolean or()
Checks if any value is true. π- Returns:
- result
or(true, false) == true or(false, false) == false or(false, true, false, true) == true or(false, false, false, false) == false
-
or
public static boolean orβ(boolean a)
Checks if any value is true. π- Parameters:
a
- 1st boolean- Returns:
- result
or(true, false) == true or(false, false) == false or(false, true, false, true) == true or(false, false, false, false) == false
-
or
public static boolean orβ(boolean a, boolean b)
Checks if any value is true. π- Parameters:
a
- 1st booleanb
- 2nd boolean- Returns:
- result
or(true, false) == true or(false, false) == false or(false, true, false, true) == true or(false, false, false, false) == false
-
or
public static boolean orβ(boolean a, boolean b, boolean c)
Checks if any value is true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd boolean- Returns:
- result
or(true, false) == true or(false, false) == false or(false, true, false, true) == true or(false, false, false, false) == false
-
or
public static boolean orβ(boolean a, boolean b, boolean c, boolean d)
Checks if any value is true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th boolean- Returns:
- result
or(true, false) == true or(false, false) == false or(false, true, false, true) == true or(false, false, false, false) == false
-
or
public static boolean orβ(boolean a, boolean b, boolean c, boolean d, boolean e)
Checks if any value is true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th boolean- Returns:
- result
or(true, false) == true or(false, false) == false or(false, true, false, true) == true or(false, false, false, false) == false
-
or
public static boolean orβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f)
Checks if any value is true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th boolean- Returns:
- result
or(true, false) == true or(false, false) == false or(false, true, false, true) == true or(false, false, false, false) == false
-
or
public static boolean orβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g)
Checks if any value is true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th booleang
- 7th boolean- Returns:
- result
or(true, false) == true or(false, false) == false or(false, true, false, true) == true or(false, false, false, false) == false
-
or
public static boolean orβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g, boolean h)
Checks if any value is true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th booleang
- 7th booleanh
- 8th boolean- Returns:
- result
or(true, false) == true or(false, false) == false or(false, true, false, true) == true or(false, false, false, false) == false
-
xor
public static boolean xor()
Checks if odd no. of values are true. π- Returns:
- result
xor(true, false) == true xor(true, true) == false xor(true, true, true, false) == true xor(true, true, true, true) == false
-
xor
public static boolean xorβ(boolean a)
Checks if odd no. of values are true. π- Parameters:
a
- 1st boolean- Returns:
- result
xor(true, false) == true xor(true, true) == false xor(true, true, true, false) == true xor(true, true, true, true) == false
-
xor
public static boolean xorβ(boolean a, boolean b)
Checks if odd no. of values are true. π- Parameters:
a
- 1st booleanb
- 2nd boolean- Returns:
- result
xor(true, false) == true xor(true, true) == false xor(true, true, true, false) == true xor(true, true, true, true) == false
-
xor
public static boolean xorβ(boolean a, boolean b, boolean c)
Checks if odd no. of values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd boolean- Returns:
- result
xor(true, false) == true xor(true, true) == false xor(true, true, true, false) == true xor(true, true, true, true) == false
-
xor
public static boolean xorβ(boolean a, boolean b, boolean c, boolean d)
Checks if odd no. of values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th boolean- Returns:
- result
xor(true, false) == true xor(true, true) == false xor(true, true, true, false) == true xor(true, true, true, true) == false
-
xor
public static boolean xorβ(boolean a, boolean b, boolean c, boolean d, boolean e)
Checks if odd no. of values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th boolean- Returns:
- result
xor(true, false) == true xor(true, true) == false xor(true, true, true, false) == true xor(true, true, true, true) == false
-
xor
public static boolean xorβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f)
Checks if odd no. of values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th boolean- Returns:
- result
xor(true, false) == true xor(true, true) == false xor(true, true, true, false) == true xor(true, true, true, true) == false
-
xor
public static boolean xorβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g)
Checks if odd no. of values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th booleang
- 7th boolean- Returns:
- result
xor(true, false) == true xor(true, true) == false xor(true, true, true, false) == true xor(true, true, true, true) == false
-
xor
public static boolean xorβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g, boolean h)
Checks if odd no. of values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th booleang
- 7th booleanh
- 8th boolean- Returns:
- result
xor(true, false) == true xor(true, true) == false xor(true, true, true, false) == true xor(true, true, true, true) == false
-
count
public static int count()
Counts no. of true values. π- Returns:
- result
count(true, true) == 2 count(true, false) == 1 count(true, true, true, false) == 3 count(false, true, false, false) == 1
-
count
public static int countβ(boolean a)
Counts no. of true values. π- Parameters:
a
- 1st boolean- Returns:
- result
count(true, true) == 2 count(true, false) == 1 count(true, true, true, false) == 3 count(false, true, false, false) == 1
-
count
public static int countβ(boolean a, boolean b)
Counts no. of true values. π- Parameters:
a
- 1st booleanb
- 2nd boolean- Returns:
- result
count(true, true) == 2 count(true, false) == 1 count(true, true, true, false) == 3 count(false, true, false, false) == 1
-
count
public static int countβ(boolean a, boolean b, boolean c)
Counts no. of true values. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd boolean- Returns:
- result
count(true, true) == 2 count(true, false) == 1 count(true, true, true, false) == 3 count(false, true, false, false) == 1
-
count
public static int countβ(boolean a, boolean b, boolean c, boolean d)
Counts no. of true values. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th boolean- Returns:
- result
count(true, true) == 2 count(true, false) == 1 count(true, true, true, false) == 3 count(false, true, false, false) == 1
-
count
public static int countβ(boolean a, boolean b, boolean c, boolean d, boolean e)
Counts no. of true values. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th boolean- Returns:
- result
count(true, true) == 2 count(true, false) == 1 count(true, true, true, false) == 3 count(false, true, false, false) == 1
-
count
public static int countβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f)
Counts no. of true values. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th boolean- Returns:
- result
count(true, true) == 2 count(true, false) == 1 count(true, true, true, false) == 3 count(false, true, false, false) == 1
-
count
public static int countβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g)
Counts no. of true values. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th booleang
- 7th boolean- Returns:
- result
count(true, true) == 2 count(true, false) == 1 count(true, true, true, false) == 3 count(false, true, false, false) == 1
-
count
public static int countβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g, boolean h)
Counts no. of true values. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th booleang
- 7th booleanh
- 8th boolean- Returns:
- result
count(true, true) == 2 count(true, false) == 1 count(true, true, true, false) == 3 count(false, true, false, false) == 1
-
nand
public static boolean nand()
Checks if any value is false. π- Returns:
- result
nand(true, false) == true nand(true, true) == false nand(true, true, false, true) == true nand(true, true, true, true) == false
-
nand
public static boolean nandβ(boolean a)
Checks if any value is false. π- Parameters:
a
- 1st boolean- Returns:
- result
nand(true, false) == true nand(true, true) == false nand(true, true, false, true) == true nand(true, true, true, true) == false
-
nand
public static boolean nandβ(boolean a, boolean b)
Checks if any value is false. π- Parameters:
a
- 1st booleanb
- 2nd boolean- Returns:
- result
nand(true, false) == true nand(true, true) == false nand(true, true, false, true) == true nand(true, true, true, true) == false
-
nand
public static boolean nandβ(boolean a, boolean b, boolean c)
Checks if any value is false. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd boolean- Returns:
- result
nand(true, false) == true nand(true, true) == false nand(true, true, false, true) == true nand(true, true, true, true) == false
-
nand
public static boolean nandβ(boolean a, boolean b, boolean c, boolean d)
Checks if any value is false. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th boolean- Returns:
- result
nand(true, false) == true nand(true, true) == false nand(true, true, false, true) == true nand(true, true, true, true) == false
-
nand
public static boolean nandβ(boolean a, boolean b, boolean c, boolean d, boolean e)
Checks if any value is false. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th boolean- Returns:
- result
nand(true, false) == true nand(true, true) == false nand(true, true, false, true) == true nand(true, true, true, true) == false
-
nand
public static boolean nandβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f)
Checks if any value is false. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th boolean- Returns:
- result
nand(true, false) == true nand(true, true) == false nand(true, true, false, true) == true nand(true, true, true, true) == false
-
nand
public static boolean nandβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g)
Checks if any value is false. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th booleang
- 7th boolean- Returns:
- result
nand(true, false) == true nand(true, true) == false nand(true, true, false, true) == true nand(true, true, true, true) == false
-
nand
public static boolean nandβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g, boolean h)
Checks if any value is false. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th booleang
- 7th booleanh
- 8th boolean- Returns:
- result
nand(true, false) == true nand(true, true) == false nand(true, true, false, true) == true nand(true, true, true, true) == false
-
nor
public static boolean nor()
Checks if all values are false. π- Returns:
- result
nor(false, false) == true nor(true, false) == false nor(false, false, false, false) == true nor(false, false, true, false) == false
-
nor
public static boolean norβ(boolean a)
Checks if all values are false. π- Parameters:
a
- 1st boolean- Returns:
- result
nor(false, false) == true nor(true, false) == false nor(false, false, false, false) == true nor(false, false, true, false) == false
-
nor
public static boolean norβ(boolean a, boolean b)
Checks if all values are false. π- Parameters:
a
- 1st booleanb
- 2nd boolean- Returns:
- result
nor(false, false) == true nor(true, false) == false nor(false, false, false, false) == true nor(false, false, true, false) == false
-
nor
public static boolean norβ(boolean a, boolean b, boolean c)
Checks if all values are false. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd boolean- Returns:
- result
nor(false, false) == true nor(true, false) == false nor(false, false, false, false) == true nor(false, false, true, false) == false
-
nor
public static boolean norβ(boolean a, boolean b, boolean c, boolean d)
Checks if all values are false. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th boolean- Returns:
- result
nor(false, false) == true nor(true, false) == false nor(false, false, false, false) == true nor(false, false, true, false) == false
-
nor
public static boolean norβ(boolean a, boolean b, boolean c, boolean d, boolean e)
Checks if all values are false. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th boolean- Returns:
- result
nor(false, false) == true nor(true, false) == false nor(false, false, false, false) == true nor(false, false, true, false) == false
-
nor
public static boolean norβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f)
Checks if all values are false. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th boolean- Returns:
- result
nor(false, false) == true nor(true, false) == false nor(false, false, false, false) == true nor(false, false, true, false) == false
-
nor
public static boolean norβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g)
Checks if all values are false. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th booleang
- 7th boolean- Returns:
- result
nor(false, false) == true nor(true, false) == false nor(false, false, false, false) == true nor(false, false, true, false) == false
-
nor
public static boolean norβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g, boolean h)
Checks if all values are false. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th booleang
- 7th booleanh
- 8th boolean- Returns:
- result
nor(false, false) == true nor(true, false) == false nor(false, false, false, false) == true nor(false, false, true, false) == false
-
xnor
public static boolean xnor()
Checks if even no. of values are true. π- Returns:
- result
xnor(true, true) == true xnor(false, true) == false xnor(true, true, false, false) == true xnor(true, true, true, false) == false
-
xnor
public static boolean xnorβ(boolean a)
Checks if even no. of values are true. π- Parameters:
a
- 1st boolean- Returns:
- result
xnor(true, true) == true xnor(false, true) == false xnor(true, true, false, false) == true xnor(true, true, true, false) == false
-
xnor
public static boolean xnorβ(boolean a, boolean b)
Checks if even no. of values are true. π- Parameters:
a
- 1st booleanb
- 2nd boolean- Returns:
- result
xnor(true, true) == true xnor(false, true) == false xnor(true, true, false, false) == true xnor(true, true, true, false) == false
-
xnor
public static boolean xnorβ(boolean a, boolean b, boolean c)
Checks if even no. of values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd boolean- Returns:
- result
xnor(true, true) == true xnor(false, true) == false xnor(true, true, false, false) == true xnor(true, true, true, false) == false
-
xnor
public static boolean xnorβ(boolean a, boolean b, boolean c, boolean d)
Checks if even no. of values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th boolean- Returns:
- result
xnor(true, true) == true xnor(false, true) == false xnor(true, true, false, false) == true xnor(true, true, true, false) == false
-
xnor
public static boolean xnorβ(boolean a, boolean b, boolean c, boolean d, boolean e)
Checks if even no. of values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th boolean- Returns:
- result
xnor(true, true) == true xnor(false, true) == false xnor(true, true, false, false) == true xnor(true, true, true, false) == false
-
xnor
public static boolean xnorβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f)
Checks if even no. of values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th boolean- Returns:
- result
xnor(true, true) == true xnor(false, true) == false xnor(true, true, false, false) == true xnor(true, true, true, false) == false
-
xnor
public static boolean xnorβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g)
Checks if even no. of values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th booleang
- 7th boolean- Returns:
- result
xnor(true, true) == true xnor(false, true) == false xnor(true, true, false, false) == true xnor(true, true, true, false) == false
-
xnor
public static boolean xnorβ(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g, boolean h)
Checks if even no. of values are true. π- Parameters:
a
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th booleang
- 7th booleanh
- 8th boolean- Returns:
- result
xnor(true, true) == true xnor(false, true) == false xnor(true, true, false, false) == true xnor(true, true, true, false) == false
-
select
public static boolean selectβ(int i)
Checks if ith value is true. π- Parameters:
i
- index- Returns:
- result
select(0, true, false) == true select(1, true, false) == false select(1, true, true, false, false) == true select(2, true, true, false, false) == false
-
select
public static boolean selectβ(int i, boolean a)
Checks if ith value is true. π- Parameters:
i
- indexa
- 1st boolean- Returns:
- result
select(0, true, false) == true select(1, true, false) == false select(1, true, true, false, false) == true select(2, true, true, false, false) == false
-
select
public static boolean selectβ(int i, boolean a, boolean b)
Checks if ith value is true. π- Parameters:
i
- indexa
- 1st booleanb
- 2nd boolean- Returns:
- result
select(0, true, false) == true select(1, true, false) == false select(1, true, true, false, false) == true select(2, true, true, false, false) == false
-
select
public static boolean selectβ(int i, boolean a, boolean b, boolean c)
Checks if ith value is true. π- Parameters:
i
- indexa
- 1st booleanb
- 2nd booleanc
- 3rd boolean- Returns:
- result
select(0, true, false) == true select(1, true, false) == false select(1, true, true, false, false) == true select(2, true, true, false, false) == false
-
select
public static boolean selectβ(int i, boolean a, boolean b, boolean c, boolean d)
Checks if ith value is true. π- Parameters:
i
- indexa
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th boolean- Returns:
- result
select(0, true, false) == true select(1, true, false) == false select(1, true, true, false, false) == true select(2, true, true, false, false) == false
-
select
public static boolean selectβ(int i, boolean a, boolean b, boolean c, boolean d, boolean e)
Checks if ith value is true. π- Parameters:
i
- indexa
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th boolean- Returns:
- result
select(0, true, false) == true select(1, true, false) == false select(1, true, true, false, false) == true select(2, true, true, false, false) == false
-
select
public static boolean selectβ(int i, boolean a, boolean b, boolean c, boolean d, boolean e, boolean f)
Checks if ith value is true. π- Parameters:
i
- indexa
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th boolean- Returns:
- result
select(0, true, false) == true select(1, true, false) == false select(1, true, true, false, false) == true select(2, true, true, false, false) == false
-
select
public static boolean selectβ(int i, boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g)
Checks if ith value is true. π- Parameters:
i
- indexa
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th booleang
- 7th boolean- Returns:
- result
select(0, true, false) == true select(1, true, false) == false select(1, true, true, false, false) == true select(2, true, true, false, false) == false
-
select
public static boolean selectβ(int i, boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g, boolean h)
Checks if ith value is true. π- Parameters:
i
- indexa
- 1st booleanb
- 2nd booleanc
- 3rd booleand
- 4th booleane
- 5th booleanf
- 6th booleang
- 7th booleanh
- 8th boolean- Returns:
- result
select(0, true, false) == true select(1, true, false) == false select(1, true, true, false, false) == true select(2, true, true, false, false) == false
-
-