Android Collection Empty Check isEmpty(Collection list)

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

Description

is Empty

Declaration

public static boolean isEmpty(Collection<?> list) 

Method Source Code

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

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

Related

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