T
- the type of objects that this object may be compared topublic class ElementCounter<T extends Comparable<T>> extends Object
Constructor and Description |
---|
ElementCounter() |
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<T,Integer>> |
entrySet() |
Set<Map.Entry<T,Integer>> |
entrySet(int minCount) |
int |
getCount(T key) |
void |
incCount(T key) |
ArrayList<T> |
keyList() |
ArrayList<T> |
keyList(int minCount) |
Set<T> |
keySet() |
static void |
main(String[] args) |
int |
size() |
String |
toString() |
String |
toString(int width) |
int |
totalCount() |
Collection<Integer> |
values() |
private HashMap<T extends Comparable<T>,Integer> map