| Modifier and Type | Field and Description |
|---|---|
private BitSetMapping |
map
The bijection between integer to object.
|
private BitVector |
vector
The backing bit vector that determines set membership.
|
| Constructor and Description |
|---|
BitSet(BitSetMapping map)
Creates an empty set corresponding to a given mapping.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object o)
Add an object to this bit set.
|
void |
addAll(BitSet B)
Add all elements in bitset B to this bit set
|
boolean |
contains(Object o) |
String |
toString() |
private final BitSetMapping map
public BitSet(BitSetMapping map)
map - a mappingpublic void addAll(BitSet B)
B - the elements to add to this setpublic void add(Object o)
o - an object that's present in the mappingpublic boolean contains(Object o)
o - an object that's present in the mapping