Parse a string as a bitset.
Parse a string as a bitset.
The string is expected to consist of 0 (false) and 1 (true) values. However, any non-1 character will be interpreted as a 0 (false) value.
IndexedBitSet containing no values.
IndexedBitSet containing no values.
Since the bitset is immutable, only one empty value is necessary.
Construct an IndexedBitSet from a scala.BitSet.
Construct an IndexedBitSet
from a sequence of integers.
Construct an IndexedBitSet
from a sequence of integers.
The integers are expected to be non-negative.
Create a new IndexedSetBuilder.
Create a new IndexedSetBuilder.
This is the best way to createa new IndexedBitSet. See IndexedBitSetBuilder for more information.
Returns the rank of the i-th bit in a 32-bit word.
Read in a IndexedBitSet from the java.io.DataInput.
Read in a IndexedBitSet from the java.io.DataInput.
the input to read bytes from
Returns the index of the i-th set bit in a 32-bit word.
Returns the index of the i-th set bit in a 32-bit word.
a 32-bit word to search
a value in [1,32] (inclusive)
Writes out the raw bits from an IndexedBitSet to a DataOutput
as
bytes, LSB.
Writes out the raw bits from an IndexedBitSet to a DataOutput
as
bytes, LSB. This will write out ceil(bitset.length / 8)
bytes.
the bitset to write out
the output to write bytes to