MapMaxWith<K, V> extension

on

Methods

maxWith(Comparator<MapEntry<K, V>> comparator) MapEntry<K, V>?

Available on Map<K, V>, provided by the MapMaxWith extension

Returns the first entry having the largest value according to the provided comparator or null if there are no entries.