and


Description:

public void and (BitSet other)

Performs a bitwise AND with another BitSet, modifying this BitSet in place. Bits beyond the other's length are cleared.

Example:

    var a = new BitSet (8);
a.set (0);
a.set (1);
var b = new BitSet (8);
b.set (1);
b.set (2);
a.and (b);
assert (!a.get (0));
assert (a.get (1));
assert (!a.get (2));

Parameters:

other

the other BitSet.