Here you can find the source of isEmptyMap(Map, ?> map)
public static boolean isEmptyMap(Map<?, ?> map)
//package com.java2s; import java.util.Collection; import java.util.Map; public class Main { public static boolean isEmptyMap(Map<?, ?> map) { return map == null || isEmpty(map.keySet()); }//from ww w.j a va2 s . c o m public static boolean isEmpty(Collection<?> collection) { return collection == null || collection.isEmpty(); } }