Here you can find the source of isEmpty(Object[] array)
Parameter | Description |
---|---|
array | a parameter |
public static Boolean isEmpty(Object[] array)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { /**/*from w ww . j a v a 2s.co m*/ * 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; } }