retainAll

abstract fun retainAll(key: K, values: Collection<V>): Boolean?

Retains only associations from the given key to the given values. Any other associations from the given key to other values are removed.

Parameters

key

The key to disassociate

values

The values to retrain

True

if the list of associations was modified; otherwise, false.