|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jtheque.utils.count.Counters
public final class Counters
A collections of counters.
Constructor Summary | |
---|---|
Counters()
Construct a new Collection of counters. |
Method Summary | |
---|---|
void |
addCounter(String name)
Add a counter with a specific name to the collection. |
Counter |
getCounter(String name)
Return the counter named with the specific name. |
Counter |
getCounterOrAdd(String name)
Return the named counter or a new if the counter doesn't exist. |
Iterator<Map.Entry<String,Counter>> |
iterator()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Counters()
Method Detail |
---|
public void addCounter(String name)
name
- The name of the new counter.public Counter getCounter(String name)
name
- The name of the counter we search.
public Counter getCounterOrAdd(String name)
name
- The name of the counter.
public Iterator<Map.Entry<String,Counter>> iterator()
iterator
in interface Iterable<Map.Entry<String,Counter>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |