Bit Array
A class representing a bit array where each bit is stored as a boolean value in a compact, memory-efficient manner. The boolean values are packed into integers, with each integer representing 32 bits. This class provides methods to set and get the boolean values at specific indices, as well as perform various operations on the array.
This class is NOT synchronized. Simultaneous modifications and reads from multiple threads may lead to unpredictable behavior.
Constructors
Properties
Functions
Performs a bitwise AND with other in place, modifying this array.
Performs the given action on each element in the array, providing the index of the element.
Returns true if any bit set in other is also set in this array (intersection).
Returns true if every true bit in this array is also true in other (subset test).
Returns true if every true bit in other is also true in this array (superset test).
Performs a bitwise NAND with other in place, modifying this array.
Performs a bitwise NOR with other in place, modifying this array.
Returns A BooleanArray representation of this BitArray.
Performs a bitwise XOR with other in place, modifying this array.