forked from External/mage
Added unit tests and javadoc for Counter class.
This commit is contained in:
parent
afc523b7c7
commit
ad0fb6b7eb
3 changed files with 225 additions and 9 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue