Here you can find the source of isEmptyOrNull(Object[] array)
public static boolean isEmptyOrNull(Object[] array)
//package com.java2s; //License from project: Open Source License import java.util.Collection; import java.util.Map; public class Main { public static boolean isEmptyOrNull(Collection collection) { return (collection == null || collection.isEmpty() || collection.size() == 0); }/*from w w w. j ava 2s . co m*/ public static boolean isEmptyOrNull(Object[] array) { return (array == null || array.length == 0); } public static boolean isEmptyOrNull(Map map) { return (map == null || map.isEmpty() || map.size() == 0); } }