K
- 键值对对应键V
- 键值对对应值public class CBMapSortUtil<K,V>
extends java.lang.Object
Constructor and Description |
---|
CBMapSortUtil() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<K,V> |
getMapSortByKeyDown(java.util.Map<K,V> sourceMap)
按照Map中value进行降序排列
|
java.util.Map<K,V> |
getMapSortByKeyUp(java.util.Map<K,V> sourceMap)
按照Map中value进行升序排列
|
java.util.Map<K,V> |
getMapSortByValueDown(java.util.Map<K,V> sourceMap)
按照Map中key进行降序排列
|
java.util.Map<K,V> |
getMapSortByValueUp(java.util.Map<K,V> sourceMap)
按照Map中key进行升序排列
|
public java.util.Map<K,V> getMapSortByValueUp(java.util.Map<K,V> sourceMap)
sourceMap
- 要排序 mappublic java.util.Map<K,V> getMapSortByValueDown(java.util.Map<K,V> sourceMap)
sourceMap
- 要排序 mappublic java.util.Map<K,V> getMapSortByKeyUp(java.util.Map<K,V> sourceMap)
sourceMap
- 要排序 map