public class MapUtils
extends java.lang.Object
| Constructor and Description |
|---|
MapUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> java.util.Map<K,V> |
toSortedMap(java.util.Map<K,V> map,
java.util.Comparator<? super K> comparator)
Returns the the Map either ordered or as-is, if the comparator is null.
|
public static <K,V> java.util.Map<K,V> toSortedMap(java.util.Map<K,V> map,
java.util.Comparator<? super K> comparator)
map - the Mapcomparator - the comparator to use.