MapMaxWith<K, V> extension

on

Methods

maxWith(Comparator<MapEntry<K, V>> comparator) MapEntry<K, V>?
Returns the first entry having the largest value according to the provided comparator or null if there are no entries.