Merge pull request #1399 from poixen/counters

Added unit tests and javadoc for Counter class.
This commit is contained in:
poixen 2015-12-01 20:04:15 +01:00
commit db2af7000e
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) {