Package net.i2p.util
Class ObjectCounter<K>
java.lang.Object
net.i2p.util.ObjectCounter<K>
- All Implemented Interfaces:
 Serializable
Count things.
- Author:
 - zzz, welterde
 - See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
ObjectCounter
public ObjectCounter() 
 - 
 - 
Method Details
- 
increment
Add one.- Returns:
 - count after increment
 
 - 
max
Set a high value- Since:
 - 0.9.56
 
 - 
count
- Returns:
 - current count
 
 - 
objects
- Returns:
 - set of objects with counts > 0
 
 - 
clear
public void clear()Start over. Reset the count for all keys to zero.- Since:
 - 0.7.11
 
 - 
clear
Reset the count for this key to zero- Since:
 - 0.9.36
 
 
 -