Package java.util
Class BitSet

Public Method or

void or(BitSet bitset)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Performs a logical OR operation of this bit set with the bit set argument. This bit set is modified so that a bit is it has the boolean value true if it either already had the boolean value true or the corresponding bit in the bit set argument has 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.or(bitset2);

   Logger.log("Bitset1 after OR operation: " + bitset1);

The example above returns bit set after the OR operation.