vertx / io.vertx.reactivex.core.shareddata / LocalMap / putIfAbsent

putIfAbsent

open fun putIfAbsent(key: K, value: V): V

Put the entry only if there is no existing entry for that key

Parameters

key - the key

value - the value

Return
the old value or null, if none