|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.util.intset.BitSet<T>
public final class BitSet<T>
A bit set is a set of elements, each of which corresponds to a unique integer from [0,MAX].
| Constructor Summary | |
|---|---|
BitSet(BitSet<T> B)
|
|
BitSet(OrdinalSetMapping<T> map)
Constructor: create an empty set corresponding to a given mapping |
|
| Method Summary | |
|---|---|
void |
add(T o)
Add an object to this bit set. |
void |
addAll(BitSet<?> B)
Add all elements in bitset B to this bit set |
void |
addAll(BitVector B)
Add all bits in BitVector B to this bit set |
void |
clear(T o)
Remove an object from this bit set. |
void |
clearAll()
Set all the bits to 0. |
boolean |
contains(T o)
Does this set contain a certain object? |
void |
copyBits(BitSet<T> other)
Method copy. |
void |
difference(BitSet<T> other)
Perform the difference of two bit sets |
void |
intersect(BitSet<?> other)
Perform intersection of two bitsets |
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
Not very efficient. |
int |
length()
|
boolean |
sameBits(BitSet<?> other)
Does this object hold the same bits as other? |
void |
setAll()
Set all the bits to 1. |
int |
size()
Method size. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BitSet(OrdinalSetMapping<T> map)
java.lang.IllegalArgumentException - if map is null
public BitSet(BitSet<T> B)
throws java.lang.NullPointerException
java.lang.NullPointerException| Method Detail |
|---|
public void addAll(BitSet<?> B)
java.lang.IllegalArgumentException - if B is nullpublic void addAll(BitVector B)
public void add(T o)
public void clear(T o)
o - the object to removepublic boolean contains(T o)
public java.lang.String toString()
toString in class java.lang.Objectpublic void copyBits(BitSet<T> other)
java.lang.IllegalArgumentException - if other is nullpublic boolean sameBits(BitSet<?> other)
java.lang.IllegalArgumentException - if other is nullpublic java.util.Iterator iterator()
public int size()
public int length()
public void clearAll()
public void setAll()
public void intersect(BitSet<?> other)
other - the other bitset in the operation
java.lang.IllegalArgumentException - if other is nullpublic void difference(BitSet<T> other)
other -
java.lang.IllegalArgumentException - if other is nullpublic boolean isEmpty()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||