Java tutorial
//package com.java2s; import java.util.Map; public class Main { public static <T> boolean isMapNotEmpty(Map<T, T> map) { return !isMapEmpty(map); } public static <T> boolean isMapEmpty(Map<T, T> map) { return null == map || map.isEmpty(); } }