public class IntCounter<E>
extends java.lang.Object
| Constructor and Description |
|---|
IntCounter()
Constructs a new (empty) Counter.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.util.Map.Entry<E,java.lang.Integer>> |
entrySet() |
double |
incrementCount(E key)
Adds 1 to the count for the given key.
|
void |
setCount(E key,
java.lang.Integer value) |
int |
totalIntCount() |
public double incrementCount(E key)
public void setCount(E key, java.lang.Integer value)
public int totalIntCount()
public java.util.Set<java.util.Map.Entry<E,java.lang.Integer>> entrySet()