void and(BitSet bitset)
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Performs a logical AND operation of this bit set with the argument bit set. This bit set is modified so that each bit in it ha the boolean value true if it both initially had the boolean value true and the corresponding bit in the bit set argument also had the boolean value true.
Example
BitSet bitset1 = new BitSet(6);
BitSet bitset2 = new BitSet(6);
bitset1.set(0);
bitset1.set(2);
bitset2.set(2);
bitset2.set(4);
Logger.log("Bitset1:" + bitset1);
Logger.log("Bitset2:" + bitset2);
bitset1.and(bitset2);
Logger.log("Bitset1 after AND operation: " + bitset1);
The example above returns bit set after the AND operation.