Java tutorial
//package com.java2s; import java.util.Collection; public class Main { /** * Checks the collection for content. * * @param coll The collection to test. * @return True if the list is null or empty, false if there is any content. */ public static boolean isNullOrEmpty(Collection<?> coll) { return coll == null || coll.isEmpty(); } }