toggle menu
Simple Robot
4.8.0
common
switch theme
search in API
simbot-common-core
/
love.forte.simbot.common.weak
/
NonWeakRefImpl
Non
Weak
Ref
Impl
class
NonWeakRefImpl
<
T
:
Any
>
(
var
value
:
T
?
)
:
WeakRef
<
T
>
(
source
)
WeakRef
的无实际弱引用效果的普通实现。 会直接将
value
保存至属性直至调用
clear
。
Members
Members & Extensions
Constructors
Non
Weak
Ref
Impl
Link copied to clipboard
constructor
(
value
:
T
?
)
Properties
value
Link copied to clipboard
open
override
var
value
:
T
?
Functions
clear
Link copied to clipboard
open
override
fun
clear
(
)
Inherited functions
get
Value
Link copied to clipboard
operator
fun
<
T
:
Any
>
WeakRef
<
T
>
.
getValue
(
o
:
Any
?
,
property
:
KProperty
<
*
>
)
:
T
?
Delegate
WeakRef.value
to a property.