|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.util.intset.SemiSparseMutableIntSet
public class SemiSparseMutableIntSet
| Constructor Summary | |
|---|---|
SemiSparseMutableIntSet()
|
|
SemiSparseMutableIntSet(SemiSparseMutableIntSet set)
|
|
| 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)
|
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 |
static SemiSparseMutableIntSet |
diff(SemiSparseMutableIntSet A,
SemiSparseMutableIntSet B)
|
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 |
IntSet |
intersection(IntSet that)
This implementation must not despoil the original value of "this" |
void |
intersectWith(IntSet set)
Interset this with another set. |
IntIterator |
intIterator()
|
boolean |
isEmpty()
|
boolean |
isSubset(IntSet that)
|
int |
max()
|
boolean |
remove(int i)
Remove an integer from this set. |
SemiSparseMutableIntSet |
removeAll(SemiSparseMutableIntSet B)
|
boolean |
sameValue(IntSet that)
|
int |
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 SemiSparseMutableIntSet()
public SemiSparseMutableIntSet(SemiSparseMutableIntSet set)
| Method Detail |
|---|
public boolean contains(int i)
contains in interface IntSeti -
public boolean containsAny(IntSet set)
containsAny in interface IntSetpublic IntSet intersection(IntSet that)
intersection in interface IntSetpublic boolean isEmpty()
isEmpty in interface IntSetpublic int size()
size in interface IntSetpublic IntIterator intIterator()
intIterator in interface IntSetpublic void foreach(IntSetAction action)
foreach in interface IntSetaction -
public void foreachExcluding(IntSet X,
IntSetAction action)
foreachExcluding in interface IntSetaction -
public int max()
throws java.lang.IllegalStateException
max in interface IntSetjava.lang.IllegalStateExceptionpublic boolean sameValue(IntSet that)
sameValue in interface IntSetthis has the same value as
that.
java.lang.IllegalArgumentException - if that is nullpublic boolean isSubset(IntSet that)
isSubset in interface IntSetthis is a subset of that.
java.lang.IllegalArgumentException - if that is nullpublic void copySet(IntSet set)
copySet in interface MutableIntSetset - public boolean addAll(IntSet set)
addAll in interface MutableIntSetset -
public boolean add(int i)
add in interface MutableIntSeti - integer to add
public boolean remove(int i)
remove in interface MutableIntSeti - integer to remove
public void intersectWith(IntSet set)
intersectWith in interface MutableIntSetset -
public boolean addAllInIntersection(IntSet other,
IntSet filter)
addAllInIntersection in interface MutableIntSetother - filter -
java.lang.IllegalArgumentException - if other is nullpublic java.lang.String toString()
toString in class java.lang.Objectpublic SemiSparseMutableIntSet removeAll(SemiSparseMutableIntSet B)
public static SemiSparseMutableIntSet diff(SemiSparseMutableIntSet A,
SemiSparseMutableIntSet B)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||