Package org.ujmp.core.collections.map
Class SoftHashMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- org.ujmp.core.collections.map.AbstractMap<K,V>
-
- org.ujmp.core.collections.map.SoftHashMap<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Map<K,V>
- Direct Known Subclasses:
SoftHashMapList
public class SoftHashMap<K,V> extends AbstractMap<K,V>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<K,java.lang.ref.SoftReference<V>>
map
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SoftHashMap()
SoftHashMap(java.util.Map<? extends K,? extends V> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
V
get(java.lang.Object key)
private java.util.Map<K,java.lang.ref.SoftReference<V>>
getMap()
java.util.Set<K>
keySet()
V
put(K key, V value)
V
remove(java.lang.Object key)
int
size()
-
Methods inherited from class org.ujmp.core.collections.map.AbstractMap
beforeReadObject, beforeWriteObject, containsKey, containsValue, entrySet, get, getAsString, isEmpty, putAll, toString, values
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-