- <init>
Pass in a MapFactory and the map it vends will back your counter.
- incrementCount
Adds the given count to the current count for the given key. If the key hasn't
been seen before, it
- addAll
Adds the counts in the given Counter to the counts in this Counter. To copy the
values from another
- argmax
Finds and returns the key in this Counter with the largest count. Ties are
broken by comparing the o
- argmin
Finds and returns the key in this Counter with the smallest count. Ties are
broken by comparing the
- clear
Removes all counts from this Counter.
- decrementCount
Subtracts the given count from the current count for the given key. If the key
hasn't been seen befo
- decrementCounts
Subtracts the given count from the current counts for each of the given keys. If
any of the keys hav
- getCount
Returns the current count for the given key, which is 0 if it hasn't been seen
before. This is a con
- getIntCount
Returns the current count for the given key, which is 0 if it hasn't been seen
before. This is a con
- incrementCounts
Adds the given count to the current counts for each of the given keys. If any of
the keys haven't be
- keySet