Android Collection Empty Check isEmpty(Collection collection)

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

Description

is Empty

Declaration

public static boolean isEmpty(Collection<?> collection) 

Method Source Code

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

public class Main {
    public static boolean isEmpty(Collection<?> collection) {
        return collection == null || collection.isEmpty();
    }//from  w  ww .ja v  a  2  s  .c  o  m
}

Related

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