This method shifts 1 over by bitPosition bits, creating a
value that looks like 00100. Then we perform AND operation
that clears all bits from the original number except the
bitPosition one. Then we compare the result with zero. If
result is zero that would mean that original number has 0 at
position bitPosition.
See
getBitfunction for further details.
This method shifts 1 over by bitPosition bits, creating a
value that looks like 00100. Then we perform OR operation
that sets specific bit into 1 but it does not affect on
other bits of the number.
See
setBitfunction for further details.
This method shifts 1 over by bitPosition bits, creating a
value that looks like 00100. Than it inverts this mask to get
the number that looks like 11011. Then AND operation is
being applied to both the number and the mask. That operation
unsets the bit.
See
clearBitfunction for further details.
This method is a combination of "Clear Bit" and "Set Bit" methods.
See
updateBitfunction for further details.