| org.archive.util.Histotable
Histotable | public class Histotable extends HashMap (Code) | | Collect and report frequency information.
Assumes external synchornization.
author: gojomo |
entryString | public static String entryString(Object e)(Code) | | Utility method to convert a key->Long into
the string "count key".
Parameters: e - Map key. String 'count key'. |
getLargestValue | public long getLargestValue()(Code) | | Return the largest value of any key that is larger than 0. If no
values or no value larger than zero, return zero.
long largest value or zero if none larger than zero |
getSortedByCounts | public TreeSet getSortedByCounts()(Code) | | Return an up-to-date sorted version of the totalled info. |
getSortedByKeys | public TreeSet getSortedByKeys()(Code) | | Return an up-to-date sorted version of the totalled info. |
getTotal | public long getTotal()(Code) | | Return the total of all tallies.
long total of all tallies |
tally | public void tally(K key)(Code) | | Record one more occurence of the given object key.
Parameters: key - Object key. |
tally | public void tally(K key, long count)(Code) | | Record count more occurence(s) of the given object key.
Parameters: key - Object key. |
|
|