Android Collection Empty Check isEmpty(Collection theCollection)

Here you can find the source of isEmpty(Collection theCollection)

Description

is Empty

Declaration

public static boolean isEmpty(Collection<?> theCollection) 

Method Source Code

//package com.java2s;
import java.util.Collection;

public class Main {
    public static boolean isEmpty(Collection<?> theCollection) {
        return theCollection == null || theCollection.isEmpty();
    }/*from   w w  w.  j a v  a 2 s  .  c  om*/
}

Related

  1. isEmpty(Collection coll)
  2. isEmpty(Collection collection)
  3. isEmpty(Collection collection)
  4. isEmpty(Collection collection)
  5. isEmpty(Collection list)
  6. isEmpty(Collection theCollection)
  7. isEmpty(Collection c)
  8. isEmpty(final Collection collection)
  9. isNotEmpty(Collection collection)