Class 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 Detail

      • MapOfCounters

        public MapOfCounters​(int numCounters,
                             int counterSize)
    • 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)