public class Counters
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Counters.Counter |
Constructor and Description |
---|
Counters() |
Modifier and Type | Method and Description |
---|---|
Counters.Counter |
add(java.lang.String name) |
void |
addTo(Counters sub) |
boolean |
count(java.lang.String name,
java.lang.Comparable value)
Add value to the named counter.
|
Counters.Counter |
get(java.lang.String name) |
Counters |
makeSubCounters() |
void |
reset() |
void |
show(java.util.Formatter f) |
java.lang.String |
toString() |
public Counters.Counter add(java.lang.String name)
public void addTo(Counters sub)
public boolean count(java.lang.String name, java.lang.Comparable value)
public Counters.Counter get(java.lang.String name)
public Counters makeSubCounters()
public void reset()
public void show(java.util.Formatter f)
public java.lang.String toString()
toString
in class java.lang.Object