putIfAbsent

fun putIfAbsent(key: Int, value: VType?): Boolean

Trove-inspired API method. An equivalent of the following code:

if (!map.containsKey(key)) map.put(value);
*

Return

true if key did not exist and value was placed in the map.

Parameters

key

The key of the value to check.

value

The value to put if key does not exist.