public class MutableSharedBitVectorIntSet extends Object implements MutableIntSet
| Constructor and Description |
|---|
MutableSharedBitVectorIntSet() |
MutableSharedBitVectorIntSet(BitVectorIntSet s) |
MutableSharedBitVectorIntSet(MutableSharedBitVectorIntSet set) |
MutableSharedBitVectorIntSet(SparseIntSet s) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int i)
Add an integer value to this set.
|
boolean |
addAll(IntSet set)
Add all members of set to this.
|
boolean |
addAllInIntersection(IntSet other,
IntSet filter) |
void |
clear()
remove all elements from this set
|
boolean |
contains(int i) |
boolean |
containsAny(IntSet set) |
void |
copySet(IntSet set)
Set the value of this to be the same as the value of set
|
void |
foreach(IntSetAction action)
Invoke an action on each element of the Set
|
void |
foreachExcluding(IntSet X,
IntSetAction action)
Invoke an action on each element of the Set, excluding elements of Set X
|
boolean |
hasSharedPart() |
IntSet |
intersection(IntSet that)
This implementation must not despoil the original value of "this"
|
IntSet |
intersection(MutableSharedBitVectorIntSet that) |
void |
intersectWith(IntSet set)
Intersect this with another set.
|
IntIterator |
intIterator() |
boolean |
isEmpty() |
boolean |
isSubset(IntSet that) |
int |
max() |
boolean |
remove(int i)
Remove an integer from this set.
|
static boolean |
sameSharedPart(MutableSharedBitVectorIntSet a,
MutableSharedBitVectorIntSet b) |
boolean |
sameValue(IntSet that) |
int |
size() |
String |
toString() |
IntSet |
union(IntSet that)
This implementation must not despoil the original value of "this"
|
public MutableSharedBitVectorIntSet()
public MutableSharedBitVectorIntSet(MutableSharedBitVectorIntSet set)
IllegalArgumentException - if set is nullpublic MutableSharedBitVectorIntSet(SparseIntSet s)
IllegalArgumentException - if s is nullpublic MutableSharedBitVectorIntSet(BitVectorIntSet s)
IllegalArgumentException - if s is nullpublic boolean contains(int i)
contains in interface IntSetIntSet.contains(int)public IntSet intersection(IntSet that)
IntSetintersection in interface IntSetIntSet.intersection(com.ibm.wala.util.intset.IntSet)public IntSet union(IntSet that)
IntSetunion in interface IntSetIntSet.union(com.ibm.wala.util.intset.IntSet)public IntSet intersection(MutableSharedBitVectorIntSet that)
public boolean isEmpty()
isEmpty in interface IntSetIntSet.isEmpty()public int size()
size in interface IntSetIntSet.size()public IntIterator intIterator()
intIterator in interface IntSetIntSet.intIterator()public void foreach(IntSetAction action)
IntSetforeach in interface IntSetIntSet.foreach(com.ibm.wala.util.intset.IntSetAction)public void foreachExcluding(IntSet X, IntSetAction action)
IntSetforeachExcluding in interface IntSetIntSet.foreachExcluding(com.ibm.wala.util.intset.IntSet,
com.ibm.wala.util.intset.IntSetAction)public int max()
max in interface IntSetIntSet.max()public boolean sameValue(IntSet that) throws IllegalArgumentException, UnimplementedError
sameValue in interface IntSetthis has the same value as that.IllegalArgumentExceptionUnimplementedErrorIntSet.sameValue(com.ibm.wala.util.intset.IntSet)public boolean isSubset(IntSet that)
isSubset in interface IntSetthis is a subset of that.IntSet.isSubset(com.ibm.wala.util.intset.IntSet)public void copySet(IntSet set)
MutableIntSetcopySet in interface MutableIntSetpublic boolean addAll(IntSet set) throws IllegalArgumentException
MutableIntSetaddAll in interface MutableIntSetIllegalArgumentExceptionpublic boolean add(int i)
MutableIntSetadd in interface MutableIntSeti - integer to addpublic boolean remove(int i)
MutableIntSetremove in interface MutableIntSeti - integer to removepublic void intersectWith(IntSet set)
MutableIntSetintersectWith in interface MutableIntSetpublic static boolean sameSharedPart(MutableSharedBitVectorIntSet a, MutableSharedBitVectorIntSet b)
public boolean hasSharedPart()
public boolean containsAny(IntSet set)
containsAny in interface IntSetIntSet.containsAny(com.ibm.wala.util.intset.IntSet)public boolean addAllInIntersection(IntSet other, IntSet filter)
addAllInIntersection in interface MutableIntSetpublic void clear()
MutableIntSetclear in interface MutableIntSet