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>
- 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, valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:WeakValuedMapConstruct the backing store map for this WeakValuedMap. It should be capable of safe concurrent read and write.- Overrides:
newMapin classWeakValuedMap<Key,Value> - Returns:
- the backing store map
-