Java Collection Null isEmplyOrNull(Collection collection)

Here you can find the source of isEmplyOrNull(Collection collection)

Description

is Emply Or Null

License

Open Source License

Declaration

public static <T> boolean isEmplyOrNull(Collection<T> collection) 

Method Source Code

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

Related

  1. getSingleElementOrNull(Collection collection)
  2. getSizeNullSafe(final Collection collection)
  3. hasAtLeastOneNotNullElement(Collection collection)
  4. hasCollectionNullItem(Collection collection)
  5. isAllNull(Collection values)
  6. isNotNull(Collection collection)
  7. isNull(Collection collection)
  8. isNull(Collection collection)
  9. isNull(Collection c)