|
|||||||||
| 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)
|
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 |
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()
|
IntSet |
union(IntSet that)
This implementation must not despoil the original value of "this" |
| 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)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException| Method Detail |
|---|
public void clear()
MutableIntSet
clear in interface MutableIntSetpublic 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 IntSet union(IntSet that)
IntSet
union 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 IntSet
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 null
public void copySet(IntSet set)
throws java.lang.IllegalArgumentException
copySet in interface MutableIntSetjava.lang.IllegalArgumentException - if set == null
public boolean addAll(IntSet set)
throws java.lang.IllegalArgumentException
addAll in interface MutableIntSetjava.lang.IllegalArgumentException - if set == nullpublic 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 MutableIntSetjava.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 | ||||||||