Java Collection Empty nullOrEmpty(Collection tested)

Here you can find the source of nullOrEmpty(Collection tested)

Description

null Or Empty

License

Open Source License

Declaration

public static boolean nullOrEmpty(Collection<?> tested) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Collection;

public class Main {
    public static boolean nullOrEmpty(Collection<?> tested) {
        return ((tested == null) || tested.isEmpty());
    }/*from   ww  w.  j  a va2  s .  c o m*/
}

Related

  1. isNullOrEmpty(final Collection collection)
  2. isNullOrEmpty(final Collection value)
  3. isNullOrEmpty(final Collection collection)
  4. isNullOrEmpty(T collection)
  5. nullOrEmpty(Collection coll)
  6. nullOrEmpty(Collection c)
  7. nullOrEmpty(final Collection in)
  8. nullOrEmptyToDefault(final Collection collection, final Collection defaultValue)
  9. nullToEmpty(Collection c)