Class CleaningWeakReferenceMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,WeakReference<V>>
org.jivesoftware.smack.util.CleaningWeakReferenceMap<K,V>
Type Parameters:
K - The key type.
V - The value type.
All Implemented Interfaces:
Serializable, Cloneable, Map<K,WeakReference<V>>

public class CleaningWeakReferenceMap<K,V> extends HashMap<K,WeakReference<V>>
Extends a HashMap with WeakReference values, so that weak references which have been cleared are periodically removed from the map. The cleaning occurs as part of put(K, java.lang.ref.WeakReference<V>), after a specific number (cleanInterval) of calls to put(K, java.lang.ref.WeakReference<V>).
See Also: