Here you can find the source of isNotEmpty(Object[] array)
public static Boolean isNotEmpty(Object[] array)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { public static <T> Boolean isNotEmpty(List<T> list) { return !isEmpty(list); }//ww w. ja va2 s . c o m public static Boolean isNotEmpty(Object[] array) { return !isEmpty(array); } /** * list is empty? * @param list * @param <T> * @return */ public static <T> Boolean isEmpty(List<T> list) { return list == null || list.size() <= 0; } /** * * array is empty? * @param array * @return */ public static Boolean isEmpty(Object[] array) { return array == null || array.length <= 0; } }