Class Boolean

    • 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.
    • Constructor Detail

      • Boolean

        public Boolean()
    • 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 - antecedent
        b - 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 - antecedent
        b - 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 - antecedent
        b - 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 - antecedent
        b - 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 - antecedent
        b - 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 - antecedent
        b - 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 boolean
        b - 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 boolean
        b - 2nd boolean
        c - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 6th boolean
        g - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 6th boolean
        g - 7th boolean
        h - 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 boolean
        b - 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 boolean
        b - 2nd boolean
        c - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 6th boolean
        g - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 6th boolean
        g - 7th boolean
        h - 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 boolean
        b - 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 boolean
        b - 2nd boolean
        c - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 6th boolean
        g - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 6th boolean
        g - 7th boolean
        h - 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 boolean
        b - 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 boolean
        b - 2nd boolean
        c - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 6th boolean
        g - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 6th boolean
        g - 7th boolean
        h - 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 boolean
        b - 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 boolean
        b - 2nd boolean
        c - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 6th boolean
        g - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 6th boolean
        g - 7th boolean
        h - 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 boolean
        b - 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 boolean
        b - 2nd boolean
        c - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 6th boolean
        g - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 6th boolean
        g - 7th boolean
        h - 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 boolean
        b - 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 boolean
        b - 2nd boolean
        c - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 6th boolean
        g - 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 boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 6th boolean
        g - 7th boolean
        h - 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 - index
        a - 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 - index
        a - 1st boolean
        b - 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 - index
        a - 1st boolean
        b - 2nd boolean
        c - 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 - index
        a - 1st boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 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 - index
        a - 1st boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 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 - index
        a - 1st boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 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 - index
        a - 1st boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 6th boolean
        g - 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 - index
        a - 1st boolean
        b - 2nd boolean
        c - 3rd boolean
        d - 4th boolean
        e - 5th boolean
        f - 6th boolean
        g - 7th boolean
        h - 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