containsKey

open override fun containsKey(key: K): Boolean

Returns true if this map contains a mapping for the specified key.

Return

true if this map contains a mapping for the specified key

Parameters

key

key whose presence in this map is to be tested

Throws

if the specified key cannot be compared with the keys currently in the map

if the specified key is null and this map uses natural ordering, or its comparator does not permit null keys