public abstract class CollectionUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <K extends Comparable<? super K>,V> |
sortedMap(Map<K,V> map)
Sort a map by the natural order of its keys.
|
public static <K extends Comparable<? super K>,V> LinkedHashMap<K,V> sortedMap(Map<K,V> map)
K
- The map key classV
- The map value classmap
- The mapCopyright © 2009-2016 Three Crickets LLC.