Added unit tests and javadoc for Counter class.

This commit is contained in:
poixen 2015-11-30 21:44:57 +01:00
parent afc523b7c7
commit ad0fb6b7eb
3 changed files with 225 additions and 9 deletions

View file

@ -56,7 +56,7 @@ public class Counters extends HashMap<String, Counter> implements Serializable {
if (!this.containsKey(name)) {
this.put(name, new Counter(name));
}
this.get(name).add();
this.get(name).increase();
}
public void addCounter(String name, int amount) {