Class MapCounter<KT>


  • public class MapCounter<KT>
    extends Object
    A Map counter for counting with longs or integers. Not thread safe.
    • Constructor Detail

      • MapCounter

        public MapCounter()
    • Method Detail

      • increment

        public long increment​(KT key,
                              long l)
      • decrement

        public long decrement​(KT key,
                              long l)
      • get

        public long get​(KT key)
      • getInt

        public int getInt​(KT key)
      • keySet

        public Set<KT> keySet()
      • max

        public long max()
      • size

        public int size()