removeAll

abstract fun removeAll(key: K): Collection<V>(source)

Removes all values associated with the key key.

Once this method returns, key will not be mapped to any values, so it will not appear in keySet, asMap, or any other views.

Return

the values that were removed (possibly empty). The returned collection may be modifiable, but updating it will have no effect on the multimap.

See also