MutableBitSet32
MutableSet implementation that can store values in range 0..31
.
To create an instance of this class, use one of the constructors, or the utility functions MutableBitSet32.of, MutableBitSet32.full and MutableBitSet32.empty.
Instances of this class have the following particularities:
Operations on a single element execute in
O(1)
.Memory usage is
O(1)
: exactly 32 bits when unboxed.
Instances of this class are not thread-safe.
See also
Immutable alternative.
Constructors
Link copied to clipboard
constructor()
Creates an empty MutableBitSet32.
Creates a MutableBitSet32 that contains the specified elements.