public class MapUtils extends Object
Constructor and Description |
---|
MapUtils() |
Modifier and Type | Method and Description |
---|---|
static <K extends Comparable<? super K>,V> |
sortByKey(Map<K,V> map)
sort the given map by key and return a new map
|
static <K,V extends Comparable<? super V>> |
sortByValue(Map<K,V> map)
sort the given map by value and return a new map
|
public static <K extends Comparable<? super K>,V> Map<K,V> sortByKey(Map<K,V> map)
map
- the map to be sortedpublic static <K,V extends Comparable<? super V>> Map<K,V> sortByValue(Map<K,V> map)
map
- the map to be sortedCopyright © 2012–2018 tinyMediaManager. All rights reserved.