Package edu.berkeley.cs.jqf.fuzz.util
Class MapOfCounters
- java.lang.Object
-
- edu.berkeley.cs.jqf.fuzz.util.MapOfCounters
-
public class MapOfCounters extends Object
Maps integer keys to integer counts using a fixed-size table. Hash collisions are completely ignored; therefore, the counts are unreliable.- Author:
- Rohan Padhye
-
-
Constructor Summary
Constructors Constructor Description MapOfCounters(int numCounters, int counterSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
increment(int k1, int k2)
Collection<Integer>
nonEmptyCountersIndices()
org.eclipse.collections.api.list.primitive.IntList
nonZeroCountsAtIndex(int idx)
-
-
-
Method Detail
-
clear
public void clear()
-
increment
public void increment(int k1, int k2)
-
nonZeroCountsAtIndex
public org.eclipse.collections.api.list.primitive.IntList nonZeroCountsAtIndex(int idx)
-
nonEmptyCountersIndices
public Collection<Integer> nonEmptyCountersIndices()
-
-