maxWith

abstract fun maxWith(comparator: Comparator<in Map.Entry<K, V>>): Map.Entry<K, V>

返回按给定比较器选择的最大元素。

Return

按给定比较器选择的最大元素。

Parameters

comparator

用于比较元素的比较器。