remove

open override fun remove(key: K): V?

Removes the mapping for the specified key from the map if present. This operation is synchronized.

Return

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

Parameters

key

The key whose mapping is to be removed from the map.