flip
Sets the bit at the specified index to the complement of its current value.
Since
1.4
Parameters
bitIndex
the index of the bit to flip
Throws
if the specified index is negative
Sets each bit from the specified fromIndex (inclusive) to the specified toIndex (exclusive) to the complement of its current value.
Since
1.4
Parameters
fromIndex
index of the first bit to flip
toIndex
index after the last bit to flip
Throws
if fromIndex is negative, or toIndex is negative, or fromIndex is larger than toIndex