contains

abstract operator fun contains(key: K): Boolean(source)

Checks whether a value is currently associated with key.

Note. Values may be removed at any-time. It is possible that a get call returns null, even if it is directly following a contains call that returned true.

See also

Equivalent method for regular maps.