Class TunedMutableSparseIntSet
java.lang.Object
com.ibm.wala.util.intset.SparseIntSet
com.ibm.wala.util.intset.MutableSparseIntSet
com.ibm.wala.util.intset.TunedMutableSparseIntSet
- All Implemented Interfaces:
IntSet, MutableIntSet, Serializable
A
MutableSparseIntSet that allows for tuning of its initial size and expansion factor.- See Also:
-
Field Summary
Fields inherited from class SparseIntSet
elements, size -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class MutableSparseIntSet
add, addAll, addAll, addAllInIntersection, clear, copySet, createMutableSparseIntSet, diff, intersectWith, intersectWith, make, makeEmpty, remove, removeAll, removeAll, removeAllModifier and TypeMethodDescriptionbooleanadd(int value) Add an integer value to this set.booleanaddAll(@Nullable SparseIntSet that) Add all elements from another int set.booleanAdd all elements from another int set.booleanaddAllInIntersection(IntSet other, IntSet filter) voidclear()remove all elements from this setvoidSet the value of this to be the same as the value of setstatic MutableSparseIntSetcreateMutableSparseIntSet(int initialCapacity) static MutableSparseIntSetvoidintersectWith(IntSet set) Intersect this with another set.voidintersectWith(SparseIntSet that) static MutableSparseIntSetstatic MutableSparseIntSetbooleanremove(int value) Remove an integer from this set.voidvoidTODO optimize<T extends BitVectorBase<T>>
voidremoveAll(T v) Methods inherited from class SparseIntSet
add, contains, containsAny, containsAny, diff, diffInternal, elementAt, foreach, foreachExcluding, getIndex, intersection, intIterator, isEmpty, isSubset, max, pair, parseIntArray, sameValue, singleton, size, toIntArray, toString, unionModifier and TypeMethodDescriptionstatic SparseIntSetadd(SparseIntSet s, int j) final booleancontains(int x) Does this set contain value x?booleancontainsAny(IntSet set) booleancontainsAny(SparseIntSet set) static SparseIntSetdiff(SparseIntSet A, SparseIntSet B) Compute the asymmetric difference of two sets, a \ b.static int[]final intelementAt(int idx) voidforeach(IntSetAction action) Invoke an action on each element of the SetvoidforeachExcluding(IntSet X, IntSetAction action) Invoke an action on each element of the Set, excluding elements of Set Xfinal intgetIndex(int x) intersection(IntSet that) This implementation must not despoil the original value of "this"final booleanisEmpty()booleanfinal intmax()static SparseIntSetpair(int i, int j) static int[]parseIntArray(String str) Reverse of toString(): "{2,3}" -> [2,3]booleanstatic SparseIntSetsingleton(int i) final intsize()int[]toString()This implementation must not despoil the original value of "this"
-
Constructor Details
-
TunedMutableSparseIntSet
- Throws:
IllegalArgumentException
-
-
Method Details
-
getExpansionFactor
public float getExpansionFactor()- Overrides:
getExpansionFactorin classMutableSparseIntSet
-
getInitialNonEmptySize
public int getInitialNonEmptySize()- Overrides:
getInitialNonEmptySizein classMutableSparseIntSet
-