public class IcedBitSet extends Iced
The bits are numbered starting at _offset - so there is an implicit offset built-in as a service; the offset can be zero. This allows for an efficient representation if there is a known zero prefix of bits.
The number of bits (after the zero offset) is also required - meaning this is a fixed-size (not-auto-sizing) bitset, and this bit offset is removed from all bit-indices.
A number of bytes in the byte[] can be skipped also; this is value skips bytes, not bit indices, and is intended to allow an IcedBitSet to be embedded inside a large byte array containing unrelated data.
| Constructor and Description |
|---|
IcedBitSet(int nbits) |
IcedBitSet(int nbits,
int bitoff) |
| Modifier and Type | Method and Description |
|---|---|
int |
cardinality() |
void |
clear(int idx) |
boolean |
contains(int idx) |
void |
fill(byte[] v,
int byteoff,
int nbits,
int bitoff) |
boolean |
get(int idx) |
int |
nextClearBit(int idx) |
int |
nextSetBit(int idx) |
int |
numBytes() |
void |
set(int idx) |
int |
size() |
java.lang.String |
toStrArray() |
java.lang.String |
toString() |
clone, frozenType, read_impl, read, readExternal, readJSON_impl, readJSON, toJsonString, write_impl, write, writeExternal, writeHTML_impl, writeHTML, writeJSON_impl, writeJSONpublic IcedBitSet(int nbits)
public IcedBitSet(int nbits,
int bitoff)
public void fill(byte[] v,
int byteoff,
int nbits,
int bitoff)
public boolean get(int idx)
public boolean contains(int idx)
public void set(int idx)
public void clear(int idx)
public int cardinality()
public int nextSetBit(int idx)
public int nextClearBit(int idx)
public int size()
public int numBytes()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStrArray()