|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.util.intset.SparseLongSet
com.ibm.wala.util.intset.MutableSparseLongSet
public final class MutableSparseLongSet
A sparse ordered, mutable duplicate-free, fully-encapsulated set of longs. Instances are not canonical, except for EMPTY. This implementation will be inefficient if these sets get large. TODO: even for small sets, we probably want to work on this to reduce the allocation activity.
| Field Summary |
|---|
| Fields inherited from class com.ibm.wala.util.intset.SparseLongSet |
|---|
elements, size |
| Constructor Summary | |
|---|---|
MutableSparseLongSet()
|
|
MutableSparseLongSet(int initialCapacity)
Create an empty set with a non-zero capacity |
|
MutableSparseLongSet(long[] backingStore)
|
|
MutableSparseLongSet(LongSet set)
|
|
| Method Summary | |
|---|---|
boolean |
add(long value)
Add an integer value to this set. |
boolean |
addAll(LongSet set)
Add all elements from another int set. |
boolean |
addAll(SparseLongSet that)
Add all elements from another int set. |
void |
copySet(LongSet that)
Set the value of this to be the same as the value of set |
void |
intersectWith(LongSet set)
Interset this with another set. |
void |
intersectWith(SparseLongSet set)
|
void |
remove(long value)
Remove an integer from this set. |
void |
removeAll(MutableSparseLongSet set)
|
| Methods inherited from class com.ibm.wala.util.intset.SparseLongSet |
|---|
add, contains, containsAny, containsAny, diff, elementAt, getIndex, intersection, isEmpty, isSubset, max, pair, parseLongArray, sameValue, singleton, size, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ibm.wala.util.intset.LongSet |
|---|
contains, containsAny, intersection, isEmpty, isSubset, max, sameValue, size |
| Constructor Detail |
|---|
public MutableSparseLongSet(LongSet set)
set - public MutableSparseLongSet(long[] backingStore)
public MutableSparseLongSet(int initialCapacity)
initialCapacity - public MutableSparseLongSet()
| Method Detail |
|---|
public void remove(long value)
MutableLongSet
remove in interface MutableLongSetpublic boolean add(long value)
MutableLongSet
add in interface MutableLongSetvalue -
public void copySet(LongSet that)
MutableLongSet
copySet in interface MutableLongSetpublic void intersectWith(LongSet set)
MutableLongSet
intersectWith in interface MutableLongSetpublic void intersectWith(SparseLongSet set)
public boolean addAll(LongSet set)
addAll in interface MutableLongSetpublic boolean addAll(SparseLongSet that)
that -
public void removeAll(MutableSparseLongSet set)
throws UnimplementedError
UnimplementedError
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||