Creates a new BitSet
an optional BitSet to clone.
Modifies the bits in this BitSet by performing a logical AND between this BitSet and the given BitSet.
the given bitset
this BitSet
Modifies the bits in this BitSet by turning off every bit that is set in the given bitset.
the given bitset
this BitSet
Un-sets a single bit in this BitSet, or all bits if no arguments are supplied.
this BitSet
Clone this BitSet.
a copy of this BitSet
Call a function once for each bit set on this BitSet
function that will be called once for every bit in the set. The first argument to the function is the number of the bit.
an optional object to be used as the "this" object when calling the given function, if not provided, this will be this BitSet.
Modifies the bits in this BitSet by performing a logical OR between this BitSet and the given BitSet.
the given bitset
this BitSet
Sets the bit at the given index
the index of the bit to set
false, to unset the bit - true or undefined to set the bit
this BitSet