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 Details

    • MapOfCounters

      public MapOfCounters(int numCounters, int counterSize)
  • Method Details

    • 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()