Java tutorial
//package com.java2s; import java.util.Map; public class Main { public static boolean isEmptyMap(Map map) { return null == map || map.isEmpty(); } }