public class MapUtilities extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
get(Map map,
String key,
T def)
Retrieves a value from a map by key
|
static boolean |
isEmpty(Map map)
Returns null safe isEmpty check for Map
|
public static <T> T get(Map map, String key, T def)
map - Map to retrieve item fromkey - the key whose associated value is to be returneddef - value to return if item was not found.ClassCastException - if the item found is not
a the expected type.public static boolean isEmpty(Map map)
map - Map to check, can be nullCopyright © 2017. All rights reserved.