public class BitSet1024 extends Object implements FixedBitSet, Cloneable
| Modifier and Type | Field and Description |
|---|---|
static int |
INDEX_MASK |
| Constructor and Description |
|---|
BitSet1024() |
BitSet1024(int... idx) |
BitSet1024(int i) |
| Modifier and Type | Method and Description |
|---|---|
void |
and(BitSet1024 other) |
void |
andNot(BitSet1024 other) |
int |
capacity()
number of bits we can store
|
int |
cardinality() |
void |
clear() |
void |
clear(int i) |
BitSet1024 |
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(BitSet1024 other) |
void |
set(int i) |
void |
set(int i,
boolean val) |
int |
size() |
String |
toString() |
public static final int INDEX_MASK
public BitSet1024()
public BitSet1024(int i)
public BitSet1024(int... idx)
public int longSize()
longSize in interface FixedBitSetpublic long getLong(int i)
getLong in interface FixedBitSetpublic BitSet1024 clone()
clone in interface FixedBitSetclone in class Objectpublic void set(int i)
set in interface FixedBitSetpublic void clear(int i)
clear in interface FixedBitSetpublic void set(int i,
boolean val)
set in interface FixedBitSetpublic boolean get(int i)
get in interface FixedBitSetpublic int cardinality()
cardinality in interface FixedBitSetpublic int size()
size in interface FixedBitSetpublic int capacity()
capacity in interface FixedBitSetpublic int length()
length in interface FixedBitSetpublic boolean isEmpty()
isEmpty in interface FixedBitSetpublic void clear()
clear in interface FixedBitSetpublic int nextSetBit(int fromIdx)
nextSetBit in interface FixedBitSetpublic int nextClearBit(int fromIdx)
nextClearBit in interface FixedBitSetpublic void and(BitSet1024 other)
public void andNot(BitSet1024 other)
public void or(BitSet1024 other)
public boolean equals(Object o)
Objectpublic void hash(HashData hd)
public int hashCode()