filterTo

abstract fun <M : MutableMapWrapper<in K, in V>> filterTo(destination: M, predicate: (Map.Entry<K, V>) -> Boolean): M

将与此 MapWrapper 中匹配给定谓词的所有元素添加到目标可变 MapWrapper 中。

Return

目标可变 MapWrapper。

Parameters

destination

目标可变 MapWrapper。

predicate

用于测试每个元素的谓词。