public class MapUtils extends Object
| Constructor and Description |
|---|
MapUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T,K> int |
getMaxValueListSize(Map<T,List<K>> map)
If key is K and the value is a list of T, then was is max list size for any of the value list of T.
|
static <T extends Comparable<T>,K> |
getSortedKeys(Map<T,K> map)
Returns all the keys as a sorted list from a map.
|
public static final <T,K> int getMaxValueListSize(Map<T,List<K>> map)
map - the map tablepublic static final <T extends Comparable<T>,K> List<T> getSortedKeys(Map<T,K> map)
map - the map table