initial value for the bit flags
Adds the 1 bits from the provided mask to the value.
Adds the 1 bits from the provided mask to the value.
the bit mask to add (using bit OR)
the updated object
Sets the value to 0.
Sets the value to 0.
the updated object
Returns true
if all 1 bits in the provided mask are set to 1 in the value.
Returns true
if all 1 bits in the provided mask are set to 1 in the value.
the mask to check
Returns true
if none of the 1 bits in the provided mask are set to 1 in the value.
Returns true
if none of the 1 bits in the provided mask are set to 1 in the value.
the mask to check
Returns true
if some of the 1 bits in the provided mask are set to 1 in the value.
Returns true
if some of the 1 bits in the provided mask are set to 1 in the value.
the mask to check
Clears 1 the bits from the provided mask from the value.
Clears 1 the bits from the provided mask from the value.
the bit mask whose 1 bits will be added
the updated object
Returns the underlying value.
initial value for the bit flags
initial value for the bit flags
Simple utility for managing bit flags based on an
Int
(32 bits). The implementation uses mutable state.