public class Counter<T> extends Object
| Constructor and Description |
|---|
Counter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(Counter<T> other) |
void |
addAll(List<Pair<T,Long>> values) |
void |
clear() |
Counter<T> |
clone() |
Set<Map.Entry<T,Long>> |
entrySet() |
long |
get(T s) |
Map<T,Long> |
getMap() |
long |
getTotal() |
List<Pair<T,Long>> |
getValuesAsList() |
void |
inc(T s) |
void |
inc(T s,
long count) |
Set<T> |
keySet() |
void |
print() |
void |
set(T s,
long value) |
void |
setValuesAsList(List<Pair<T,Long>> values) |
int |
size() |
List<T> |
sortedKeys() |
void |
trim(int maxSize) |
Copyright © 2015. All rights reserved.