put

@Nullable
open fun put(@NotNull key: @NotNull K, @NotNull value: @NotNull V, priority: Int): @Nullable V

Associates the specified value with the specified key and priority in this map.

Return

the previous value associated with key, or null if there was no mapping for key.

Parameters

key

key with which the specified value is to be associated

value

value to be associated with the specified key

priority

priority of the entry