Package org.jruby.util.collections
Class WeakValuedIdentityMap<Key,Value>
java.lang.Object
org.jruby.util.collections.WeakValuedMap<Key,Value>
org.jruby.util.collections.WeakValuedIdentityMap<Key,Value>
- Type Parameters:
Key
- keyValue
- value
- All Implemented Interfaces:
Serializable
,Map<Key,
Value>
Map-like that holds its values weakly and uses object identity for keys.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jruby.util.collections.WeakValuedMap
WeakValuedMap.KeyedReference<Key,
Value> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jruby.util.collections.WeakValuedMap
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, toString, values
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
WeakValuedIdentityMap
public WeakValuedIdentityMap()
-
-
Method Details
-
newMap
Description copied from class:WeakValuedMap
Construct the backing store map for this WeakValuedMap. It should be capable of safe concurrent read and write.- Overrides:
newMap
in classWeakValuedMap<Key,
Value> - Returns:
- the backing store map
-