public class MapUtil extends Object
Constructor and Description |
---|
MapUtil() |
Modifier and Type | Method and Description |
---|---|
static <K,V extends Comparable<? super V>> |
sortByValueDescending(Map<K,V> map)
Sort a Map by Value
|
public static <K,V extends Comparable<? super V>> Map<K,V> sortByValueDescending(Map<K,V> map)
K
- object to compareV
- object to comparemap
- the map to sort, the value type must be ComparableCopyright © 2016. All rights reserved.