Class CountMap<T>
java.lang.Object
uk.ac.starlink.util.CountMap<T>
Keeps track of the number of times an item of type T has been added.
- Since:
- 3 Jun 2011
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CountMap
public CountMap()Constructor.
-
-
Method Details
-
addItem
-
getCount
Returns the number of times a given item has been added.- Parameters:
key- item to count
-
keySet
-
clear
public void clear()Sets all the item counts to zero.
-