FakeWeakMap¶
@ExperimentalWeakApi
fun <K, V : Any> FakeWeakMap(): WeakMap<K, V>
A WeakMap implementation that isn't weak.
That is, all stored elements are strongly held and are never freed automatically. Elements are only removed when WeakMap.remove is called by the user.
See also¶
EmptyWeakMap: Opposite behavior: values are immediately freed.