Package com.ibm.wala.util.intset
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
,java.io.Serializable
public class TunedMutableSparseIntSet extends MutableSparseIntSet
AMutableSparseIntSet
that allows for tuning of its initial size and expansion factor.
-
-
Field Summary
-
Fields inherited from class com.ibm.wala.util.intset.SparseIntSet
elements, size
-
-
Constructor Summary
Constructors Constructor Description TunedMutableSparseIntSet(int initialSize, float expansion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getExpansionFactor()
int
getInitialNonEmptySize()
-
Methods inherited from class com.ibm.wala.util.intset.MutableSparseIntSet
add, addAll, addAll, addAllInIntersection, clear, copySet, createMutableSparseIntSet, diff, intersectWith, intersectWith, make, makeEmpty, remove, removeAll, removeAll, removeAll
-
Methods inherited from class com.ibm.wala.util.intset.SparseIntSet
add, contains, containsAny, containsAny, diff, diffInternal, elementAt, foreach, foreachExcluding, getIndex, intersection, intIterator, isEmpty, isSubset, max, pair, parseIntArray, sameValue, singleton, size, toIntArray, toString, union
-
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.IntSet
contains, containsAny, foreach, foreachExcluding, intersection, intIterator, isEmpty, isSubset, max, sameValue, size, union
-
-
-
-
Method Detail
-
getExpansionFactor
public float getExpansionFactor()
- Overrides:
getExpansionFactor
in classMutableSparseIntSet
-
getInitialNonEmptySize
public int getInitialNonEmptySize()
- Overrides:
getInitialNonEmptySize
in classMutableSparseIntSet
-
-