8 public static Bit and(Bit a, Bit b)
13 public Bit and(Bit other)
15 if(equals(Bit.ZERO) || other.equals(Bit.ZERO))
17 else if(equals(other) && equals(Bit.ONE))
23 public static Bit or(Bit a, Bit b)
28 public Bit or(Bit other)
30 if(equals(Bit.ONE) || other.equals(Bit.ONE))
32 else if(equals(other) && equals(Bit.ZERO))
38 public static Bit xor(Bit a, Bit b)
43 public Bit xor(Bit other)
45 //I'm uncertain how this should behave for cases where one value is neither 1 nor 0.