Java Collection Empty IsNotEmptyOrNull(Collection elements)

Here you can find the source of IsNotEmptyOrNull(Collection elements)

Description

Is Not Empty Or Null

License

Apache License

Declaration

public static boolean IsNotEmptyOrNull(Collection<?> elements) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.Collection;

public class Main {

    public static boolean IsNotEmptyOrNull(Collection<?> elements) {
        return !collectionIsEmptyOrNull(elements);
    }//from   w  ww  .  j a va2s . com

    public static boolean collectionIsEmptyOrNull(Collection<?> elements) {
        if (elements == null || elements.isEmpty()) {
            return true;
        }
        return false;
    }
}

Related

  1. isNotEmpty(T collection, String exceptionMessage)
  2. isNotEmptyCollection(Collection collection)
  3. isNotEmptyCollection(Object[] objs)
  4. isNotEmptyException(Collection collection)
  5. isNotEmptyOrNull(Collection collection)
  6. isNullOrEmpty(Collection c)
  7. isNullOrEmpty(Collection c)
  8. isNullOrEmpty(Collection coll)
  9. isNullOrEmpty(Collection collection)