T - The type of the key for the mapped counter, often this
will be String, but any type that can be used as key for
a HashMap will work here.public interface MappedCounter<T>
| Modifier and Type | Method and Description |
|---|---|
void |
addInt(T k,
int v) |
void |
clear() |
void |
count(java.util.Collection<T> items) |
java.util.Set<java.util.Map.Entry<T,java.lang.Integer>> |
entries() |
int |
get(T k) |
java.util.Set<T> |
keys() |
int |
remove(T key) |
java.util.Map<T,java.lang.Integer> |
sortedMap() |
int |
sum() |
java.lang.String |
toString() |
void addInt(T k, int v)
void count(java.util.Collection<T> items)
int get(T k)
int remove(T key)
java.util.Set<T> keys()
java.util.Set<java.util.Map.Entry<T,java.lang.Integer>> entries()
int sum()
void clear()
java.util.Map<T,java.lang.Integer> sortedMap()
java.lang.String toString()
toString in class java.lang.Object