Package com.ibm.wala.util.intset
Interface MutableIntSet
-
- All Superinterfaces:
IntSet,Serializable
- All Known Implementing Classes:
BimodalMutableIntSet,BitVectorIntSet,MutableSharedBitVectorIntSet,MutableSparseIntSet,SemiSparseMutableIntSet,TunedMutableSparseIntSet
public interface MutableIntSet extends IntSet
AnIntSetthat can be changed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanadd(int i)Add an integer value to this set.booleanaddAll(IntSet set)Add all members of set to this.booleanaddAllInIntersection(IntSet other, IntSet filter)voidclear()remove all elements from this setvoidcopySet(IntSet set)Set the value of this to be the same as the value of setvoidintersectWith(IntSet set)Intersect this with another set.booleanremove(int i)Remove an integer from this set.-
Methods inherited from interface com.ibm.wala.util.intset.IntSet
contains, containsAny, foreach, foreachExcluding, intersection, intIterator, isEmpty, isSubset, max, sameValue, size, union
-
-
-
-
Method Detail
-
copySet
void copySet(IntSet set)
Set the value of this to be the same as the value of set
-
addAll
boolean addAll(IntSet set)
Add all members of set to this.- Returns:
- true iff the value of this changes.
-
add
boolean add(int i)
Add an integer value to this set.- Parameters:
i- integer to add- Returns:
- true iff the value of this changes.
-
remove
boolean remove(int i)
Remove an integer from this set.- Parameters:
i- integer to remove- Returns:
- true iff the value of this changes.
-
clear
void clear()
remove all elements from this set
-
intersectWith
void intersectWith(IntSet set)
Intersect this with another set.
-
-