Package com.almis.awe.model.util.data
Class MapUtil
java.lang.Object
com.almis.awe.model.util.data.MapUtil
- Author:
- dfuentes
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V extends Comparable<? super V>>
Map<K,V> reverseSortByValue
(Map<K, V> map) Sorts the given map by value in reverse orderstatic <K,
V extends Comparable<? super V>>
Map<K,V> sortByValue
(Map<K, V> map) Sorts the given map by value
-
Method Details
-
sortByValue
Sorts the given map by value- Type Parameters:
K
- KeyV
- Value- Parameters:
map
- Map to sort- Returns:
- Sorted map
-
reverseSortByValue
Sorts the given map by value in reverse order- Type Parameters:
K
- KeyV
- Value- Parameters:
map
- Map to sort- Returns:
- Sorted map
-