Java tutorial
//package com.java2s; import java.util.Map; public class Main { public static <K, V> boolean mapIsNotNullOrEmpty(Map<K, V> map) { return map != null && !map.isEmpty(); } }