Here you can find the source of isEmplyOrNull(Collection
public static <T> boolean isEmplyOrNull(Collection<T> collection)
//package com.java2s; //License from project: Open Source License import java.util.Collection; public class Main { public static <T> boolean isEmplyOrNull(T[] ary) { if (ary == null || ary.length == 0) { return true; }/* w w w. jav a 2s. c o m*/ return false; } public static <T> boolean isEmplyOrNull(Collection<T> collection) { if (collection == null || collection.size() <= 0) { return true; } return false; } }