Android Collection Empty Check isEmptyCollection(Collection collection)

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

Description

is Empty Collection

Declaration

public static boolean isEmptyCollection(Collection<?> collection) 

Method Source Code

//package com.java2s;

import java.util.Collection;

public class Main {
    public static boolean isEmptyCollection(Collection<?> collection) {
        if (collection == null || collection.size() == 0) {
            return true;
        }/*from w  w  w.  j a  va 2  s . com*/
        return false;
    }
}

Related

  1. isNotNull(Collection collection)
  2. isNull(Collection coll)
  3. isNullOrEmpty(Collection collection)
  4. isEmpty(Collection collection)
  5. isEmpty(Collection collection)