T
- static class InstanceCounter.Data<T extends Comparable<T>> extends Object
WeakReference
structure to keep pointers objects added and a
call-count. There is one of these for each class being tracked.Modifier and Type | Field and Description |
---|---|
(package private) WeakHashMap<T,String> |
inMemory |
(package private) int |
instantiated |
int instantiated
WeakHashMap<T extends Comparable<T>,String> inMemory
public Data(T obj)
public void add(T obj)