Here you can find the source of isNull(Collection collection)
public static boolean isNull(Collection collection)
//package com.java2s; //License from project: Apache License import java.util.Collection; import java.util.Map; public class Main { public static boolean isNull(Object o) { return o instanceof String ? isNull((String) o) : o != null; }/*from w ww . j a v a2s . c o m*/ public static boolean isNull(String s) { return s == null || (s = s.trim()).isEmpty() || s.equalsIgnoreCase("null"); } public static boolean isNull(Collection collection) { return collection == null || collection.isEmpty(); } public static boolean isNull(Map map) { return map == null || map.isEmpty(); } }