computeIfPresent

open override fun <T : Any> computeIfPresent(attribute: Attribute<T>, remappingFunction: (Attribute<T>, T) -> T?): T?

如果存在,则计算。如果计算函数中返回null,则为移除对应结果。