Description:
Cloning this BitSet produces a new BitSet that is equal to it. The clone of the bit set is another bit set that has exactly the same bits set to true as this bit set and the same current size.
Example
BitSet bitset1 = new BitSet();
BitSet bitset2 = new BitSet();
bitset1.set(0);
bitset1.set(1);
bitset1.set(2);
bitset1.set(3);
bitset1.set(4);
Logger.log("Bitset2: " + bitset2);
bitset2 = (BitSet) bitset1.clone();
Logger.log("Bitset2: " + bitset2);
The example above clones the bitset1 to the bitset2.