public class BitSet256 extends Object implements FixedBitSet, Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
INDEX_MASK |
Constructor and Description |
---|
BitSet256() |
BitSet256(int... idx) |
BitSet256(int i) |
Modifier and Type | Method and Description |
---|---|
void |
and(BitSet256 other) |
void |
andNot(BitSet256 other) |
int |
capacity()
number of bits we can store
|
int |
cardinality() |
void |
clear() |
void |
clear(int i) |
BitSet256 |
clone() |
boolean |
equals(Object o)
default implementation is just an identity check
|
boolean |
get(int i) |
long |
getLong(int i) |
void |
hash(HashData hd) |
int |
hashCode()
answer the same hashCodes as java.util.BitSet
|
boolean |
isEmpty() |
int |
length()
index of highest set bit + 1
|
int |
longSize() |
int |
nextClearBit(int fromIdx) |
int |
nextSetBit(int fromIdx) |
void |
or(BitSet256 other) |
void |
set(int i) |
void |
set(int i,
boolean val) |
int |
size() |
String |
toString() |
public static final int INDEX_MASK
public BitSet256()
public BitSet256(int i)
public BitSet256(int... idx)
public int longSize()
longSize
in interface FixedBitSet
public long getLong(int i)
getLong
in interface FixedBitSet
public BitSet256 clone()
clone
in interface FixedBitSet
clone
in class Object
public void set(int i)
set
in interface FixedBitSet
public void clear(int i)
clear
in interface FixedBitSet
public void set(int i, boolean val)
set
in interface FixedBitSet
public boolean get(int i)
get
in interface FixedBitSet
public int cardinality()
cardinality
in interface FixedBitSet
public int size()
size
in interface FixedBitSet
public int capacity()
capacity
in interface FixedBitSet
public int length()
length
in interface FixedBitSet
public boolean isEmpty()
isEmpty
in interface FixedBitSet
public void clear()
clear
in interface FixedBitSet
public int nextSetBit(int fromIdx)
nextSetBit
in interface FixedBitSet
public int nextClearBit(int fromIdx)
nextClearBit
in interface FixedBitSet
public void and(BitSet256 other)
public void andNot(BitSet256 other)
public void or(BitSet256 other)
public boolean equals(Object o)
Object
public void hash(HashData hd)
public int hashCode()