Package games.stendhal.server.util
Class ObjectCounter<K>
java.lang.Object
games.stendhal.server.util.ObjectCounter<K>
- Type Parameters:
K
- Type of objects to count
Counts objects.
- Author:
- hendrik
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ObjectCounter
public ObjectCounter()
-
-
Method Details
-
clear
public void clear()Clears the counter. -
getMap
Gets the counter map.- Returns:
- Map
-
add
Adds one to the appropriate entry.- Parameters:
o
- object
-