com.ibm.wala.util.intset
Interface MutableIntSet

All Superinterfaces:
IntSet
All Known Implementing Classes:
BimodalMutableIntSet, BitVectorIntSet, MutableSharedBitVectorIntSet, MutableSparseIntSet, SemiSparseMutableIntSet, TunedMutableSparseIntSet

public interface MutableIntSet
extends IntSet


Method Summary
 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 copySet(IntSet set)
          Set the value of this to be the same as the value of set
 void intersectWith(IntSet set)
          Interset this with another set.
 boolean remove(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
 

Method Detail

copySet

void copySet(IntSet set)
Set the value of this to be the same as the value of set

Parameters:
set -

addAll

boolean addAll(IntSet set)
Add all members of set to this.

Parameters:
set -
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.

intersectWith

void intersectWith(IntSet set)
Interset this with another set.

Parameters:
set -

addAllInIntersection

boolean addAllInIntersection(IntSet other,
                             IntSet filter)
Parameters:
other -
filter -