Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.Collection; import java.util.Map; public class Main { @SafeVarargs public static <T> boolean isEmpty(T[]... input) { return input == null || input.length == 0; } public static boolean isEmpty(Collection input) { return input == null || input.isEmpty(); } public static boolean isEmpty(Map input) { return input == null || input.isEmpty(); } }