Here you can find the source of isNullOrEmpty(Collection c)
public static boolean isNullOrEmpty(Collection c)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static boolean isNullOrEmpty(Collection c) { return c == null || c.isEmpty(); }/*from www . j a va 2s . c o m*/ public static boolean isNullOrEmpty(String s) { return s == null || s.isEmpty(); } }