Top Description Constructors Methods
org.jruby.util.collections

public Class WeakValuedIdentityMap<Key, Value>

extends WeakValuedMap<Key, Value>
Class Inheritance
Type Parameters
<Key>
key
<Value>
value
Imports
java.util.Collections, .IdentityHashMap, .Map

Map-like that holds its values weakly and uses object identity for keys.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Map<Key, WeakValuedMap.KeyedReference<Key, Value>>
newMap()

Overrides org.jruby.util.collections.WeakValuedMap.newMap.

Construct the backing store map for this WeakValuedMap.

Inherited from org.jruby.util.collections.WeakValuedMap:
clearcontainsKeycontainsValueentrySetgetisEmptykeySetputputAllremovesizetoStringvalues

Constructor Detail

WeakValuedIdentityMapback to summary
public WeakValuedIdentityMap()

Method Detail

newMapback to summary
protected Map<Key, WeakValuedMap.KeyedReference<Key, Value>> newMap()

Overrides org.jruby.util.collections.WeakValuedMap.newMap.

Doc from org.jruby.util.collections.WeakValuedMap.newMap.

Construct the backing store map for this WeakValuedMap. It should be capable of safe concurrent read and write.

Returns:Map<Key, WeakValuedMap.KeyedReference<Key, Value>>

the backing store map

Annotations
@Override