Java Array Empty Check isEmptyOrNull(Object[] array)

Here you can find the source of isEmptyOrNull(Object[] array)

Description

is Empty Or Null

License

Open Source License

Declaration

public static boolean isEmptyOrNull(Object[] array) 

Method Source Code

//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);
    }
}

Related

  1. isEmpty(T[] array)
  2. isEmpty(T[] array)
  3. isEmpty(T[] array)
  4. isEmpty(T[] array)
  5. isEmptyOrNull(Object[] array)
  6. isNonEmpty(Object[] array)
  7. isNotEmpty(boolean[] values)
  8. isNotEmpty(Object[] array)
  9. isNotEmpty(Object[] array)