|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.onemind.commons.java.util.Counter
For counting things
| Constructor Summary | |
Counter()
Constructor |
|
| Method Summary | |
void |
count(java.lang.Object counted)
Add count. |
void |
count(java.lang.Object counted,
long countValue)
Adjust count by value |
void |
dump(java.io.Writer writer)
Dump to output |
long |
getCount(java.lang.Object counted)
Get the count |
void |
removeCount(java.lang.Object counted)
Remove the count. |
void |
resetAll()
Reset all the counters |
void |
resetCount(java.lang.Object counted)
Reset the count for counted |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Counter()
| Method Detail |
public void count(java.lang.Object counted)
counted -
public void count(java.lang.Object counted,
long countValue)
counted - the countedcountValue - the count valuepublic void removeCount(java.lang.Object counted)
counted - the countedpublic long getCount(java.lang.Object counted)
counted - the counted
public void dump(java.io.Writer writer)
throws java.io.IOException
writer - the writer
java.io.IOExceptionpublic void resetCount(java.lang.Object counted)
counted - the countedpublic void resetAll()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||