Package org.apfloat
Class ConcurrentSoftHashMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- org.apfloat.ConcurrentSoftHashMap<K,V>
-
- All Implemented Interfaces:
java.util.Map<K,V>
class ConcurrentSoftHashMap<K,V> extends java.util.AbstractMap<K,V>Map with an underlying ConcurrentHashMap with softly referenced values. The maximum map size is assumed to be limited so no effort is made to expunge entries for stale values.- Since:
- 1.6
- Version:
- 1.9.0
-
-
Constructor Summary
Constructors Constructor Description ConcurrentSoftHashMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()java.util.Set<java.util.Map.Entry<K,V>>entrySet()Vget(java.lang.Object key)Vput(K key, V value)Vremove(java.lang.Object key)intsize()private Vunwrap(java.lang.ref.SoftReference<V> value)private java.lang.ref.SoftReference<V>wrap(V value)-
Methods inherited from class java.util.AbstractMap
clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, toString, values
-
-