public class MapUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
keySetToList(Map<T,?> map)
Return the list composed by the key set of the map
|
static <T> Map<T,T> |
putIfNotExists(Map<T,T> map,
T key,
T value)
Put an element into the map if it the key does not exists
|
static <T> List<T> |
valuesToList(Map<?,T> map)
Return the list composed by the values of the map
|
public static <T> List<T> keySetToList(Map<T,?> map)
T - The map key typemap - The input mappublic static <T> List<T> valuesToList(Map<?,T> map)
T - The map value typemap - The input mapCopyright © 2018 Okkam srl. All rights reserved.