Android Collection Empty Check isNotEmpty(Collection list)

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

Description

is Not Empty

Declaration

public static boolean isNotEmpty(Collection<?> list) 

Method Source Code

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

public class Main {
    public static boolean isNotEmpty(Collection<?> list) {
        return !isEmpty(list);
    }//w  ww  .  jav a2 s. co  m

    public static boolean isEmpty(Collection<?> list) {
        if (list == null) {
            return true;
        }
        return list.isEmpty();
    }
}

Related

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