Allow update of MutableBoolean by AND-ing and OR-ing with another boolean.
@@ -18,6 +18,10 @@ public class MutableBoolean {
public void set(boolean value) { this.value = value; }
+ public void andSet(boolean value) { this.value &= value; }
+
+ public void orSet(boolean value) { this.value |= value; }
+
@Override
public String toString() { return Boolean.toString(value); }
