put

open fun put(key: Long, value: V): V

Puts a value value corresponding to key key in the map.

Return

the previous value that was mapped to the key, or null if no such value existed

Parameters

key

the associated key

value

the value to insert