NonWeakRefImpl

class NonWeakRefImpl<T : Any>(var value: T?) : WeakRef<T> (source)

WeakRef 的无实际弱引用效果的普通实现。 会直接将 value 保存至属性直至调用 clear

Constructors

Link copied to clipboard
constructor(value: T?)

Properties

Link copied to clipboard
open override var value: T?

Functions

Link copied to clipboard
open override fun clear()

Inherited functions

Link copied to clipboard
operator fun <T : Any> WeakRef<T>.getValue(o: Any?, property: KProperty<*>): T?

Delegate WeakRef.value to a property.