Class BitSet<T>
java.lang.Object
com.ibm.wala.util.intset.BitSet<T>
Deprecated.
A bit set is a set of elements, each of which corresponds to a unique integer from [0,MAX].
-
Constructor Summary
ConstructorsConstructorDescriptionBitSet(OrdinalSetMapping<T> map) Deprecated.Constructor: create an empty set corresponding to a given mapping -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Add an object to this bit set.voidDeprecated.Add all elements in bitset B to this bit setvoidDeprecated.Add all bits in BitVector B to this bit setvoidDeprecated.Remove an object from this bit set.voidclearAll()Deprecated.Set all the bits to 0.booleanDeprecated.Does this set contain a certain object?voidDeprecated.Method copy.static <T> BitSet<T> createBitSet(BitSet<T> B) Deprecated.voiddifference(BitSet<T> other) Deprecated.Perform the difference of two bit setsvoidDeprecated.Perform intersection of two bitsetsbooleanisEmpty()Deprecated.iterator()Deprecated.Not very efficient.intlength()Deprecated.booleanDeprecated.Does this object hold the same bits as other?voidsetAll()Deprecated.Set all the bits to 1.intsize()Deprecated.toString()Deprecated.
-
Constructor Details
-
BitSet
Deprecated.Constructor: create an empty set corresponding to a given mapping- Throws:
IllegalArgumentException- if map is null
-
-
Method Details
-
createBitSet
-
addAll
Deprecated.Add all elements in bitset B to this bit set- Throws:
IllegalArgumentException- if B is null
-
addAll
-
add
-
clear
Deprecated.Remove an object from this bit set.- Parameters:
o- the object to remove
-
contains
-
toString
-
copyBits
Deprecated.Method copy. Copies the bits in the bit vector, but only assigns the object map. No need to create a new object/bit bijection object.- Throws:
IllegalArgumentException- if other is null
-
sameBits
Deprecated.Does this object hold the same bits as other?- Throws:
IllegalArgumentException- if other is null
-
iterator
-
size
public int size()Deprecated. -
length
public int length()Deprecated. -
clearAll
public void clearAll()Deprecated.Set all the bits to 0. -
setAll
public void setAll()Deprecated.Set all the bits to 1. -
intersect
Deprecated.Perform intersection of two bitsets- Parameters:
other- the other bitset in the operation- Throws:
IllegalArgumentException- if other is null
-
difference
Deprecated.Perform the difference of two bit sets- Parameters:
other- the other bitset in the operation- Throws:
IllegalArgumentException- if other is null
-
isEmpty
public boolean isEmpty()Deprecated.
-
IntSetsuch asMutableSparseIntSetorBitVectorIntSettogether with anOrdinalSetMappinginstead. This class has no known use within WALA.