public class Histogram extends Object
The GNU Lesser General Public License for details.
Modifier and Type | Class and Description |
---|---|
private static class |
Histogram.Counter
Trivial mutable counting integer class.
|
Modifier and Type | Field and Description |
---|---|
private Map<String,Histogram.Counter> |
hist |
Constructor and Description |
---|
Histogram()
Create an empty histogram
|
private Map<String,Histogram.Counter> hist
public void increment(String key)
key
- the key to incrementpublic void clear()
public String toString()
toString
in class Object
Object.toString()