toggle menu
Simple Robot
4.8.0
common
switch theme
search in API
simbot-common-core
/
love.forte.simbot.common.attribute
/
MutableAttributeMap
/
computeIfAbsent
compute
If
Absent
abstract
fun
<
T
:
Any
>
computeIfAbsent
(
attribute
:
Attribute
<
T
>
,
mappingFunction
:
(
Attribute
<
T
>
)
->
T
)
:
T
(
source
)
如果不存在,则计算并存入。
Throws
Class
Cast
Exception
如果类型不匹配