public class MapUtilities extends Object
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 © 2014. All rights reserved.