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 void
clear()
java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
V
get(java.lang.Object key)
V
put(K key, V value)
V
remove(java.lang.Object key)
int
size()
private V
unwrap(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
-
-