APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.internal.foreign.abi

pack-priv final Class SoftReferenceCache<K, V>

extends Object
Class Inheritance
Imports
java.lang.ref.SoftReference, java.util.Map, java.util.concurrent.ConcurrentHashMap, java.util.function.Function

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final Map<K, SoftReferenceCache<K, V>.Node>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public V
get(K key, Function<K, V> valueFactory)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheback to summary
private final Map<K, SoftReferenceCache<K, V>.Node> cache

Constructor Detail

SoftReferenceCacheback to summary
pack-priv SoftReferenceCache()

Method Detail

getback to summary
public V get(K key, Function<K, V> valueFactory)
jdk.internal.foreign.abi back to summary

private final Class SoftReferenceCache.Node

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private volatile SoftReference<V>

Constructor Summary

AccessConstructor and Description
private
Node()

Method Summary

Modifier and TypeMethod and Description
pack-priv V
get(K key, Function<K, V> valueFactory)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

refback to summary
private volatile SoftReference<V> ref

Constructor Detail

Nodeback to summary
private Node()

Method Detail

getback to summary
pack-priv V get(K key, Function<K, V> valueFactory)