public class BitSet64
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected int |
cardinality |
| Constructor and Description |
|---|
BitSet64() |
BitSet64(int... idx) |
BitSet64(int i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int i) |
void |
and(BitSet64 other) |
void |
andNot(BitSet64 other) |
int |
capacity() |
int |
cardinality() |
void |
clear() |
void |
clear(int i) |
gov.nasa.jpf.util.AbstractFixedBitSet |
clone() |
boolean |
contains(int i) |
boolean |
equals(java.lang.Object o) |
boolean |
get(int i) |
void |
hash(HashData hd) |
int |
hashCode()
answer the same hashCodes as java.util.BitSet
|
IntIterator |
intIterator() |
boolean |
isEmpty() |
int |
length()
index of highest set bit + 1
|
int |
nextClearBit(int fromIdx) |
int |
nextSetBit(int fromIdx) |
void |
or(BitSet64 other) |
boolean |
remove(int i) |
void |
set(int i) |
void |
set(int i,
boolean val) |
int |
size()
number of bits we can store
|
java.lang.String |
toString() |
public BitSet64()
public BitSet64(int i)
public BitSet64(int... idx)
public void hash(HashData hd)
hash in interface FixedBitSetpublic void set(int i)
set in interface FixedBitSetpublic void clear(int i)
clear in interface FixedBitSetpublic boolean get(int i)
get in interface FixedBitSetpublic int capacity()
capacity in interface FixedBitSetpublic int size()
size in interface FixedBitSetsize in interface IntSetpublic int length()
length in interface FixedBitSetpublic void clear()
clear in interface FixedBitSetclear in interface IntSetpublic int nextSetBit(int fromIdx)
nextSetBit in interface FixedBitSetpublic int nextClearBit(int fromIdx)
nextClearBit in interface FixedBitSetpublic void and(BitSet64 other)
public void andNot(BitSet64 other)
public void or(BitSet64 other)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic gov.nasa.jpf.util.AbstractFixedBitSet clone()
clone in interface FixedBitSetclone in interface IntSetclone in class java.lang.Objectpublic void set(int i,
boolean val)
set in interface FixedBitSetpublic int cardinality()
cardinality in interface FixedBitSetpublic boolean isEmpty()
isEmpty in interface FixedBitSetisEmpty in interface IntSetpublic java.lang.String toString()
toString in class java.lang.Objectpublic IntIterator intIterator()
intIterator in interface IntSet