|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.infoway.messagebuilder.j5goodies.Tally<T>
T
- - the type of thing being countedpublic class Tally<T extends Comparable<T>>
A class that provides a final tally of counted items. Used with the Counter class to keep a running count of items.
Method Summary | |
---|---|
int |
compareTo(Tally<T> o)
Comparison method. |
int |
getCount()
Get the final count. |
T |
getKey()
The value being counted. |
String |
toString()
Standard debug string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int getCount()
Get the final count.
public T getKey()
The value being counted.
public int compareTo(Tally<T> o)
Comparison method.
compareTo
in interface Comparable<Tally<T extends Comparable<T>>>
o
- - the item being compared
public String toString()
Standard debug string.
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |