Android Collection Empty Check isNotNull(Collection coll)

Here you can find the source of isNotNull(Collection coll)

Description

is Not Null

Declaration

public static boolean isNotNull(Collection<?> coll) 

Method Source Code

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

public class Main {
    public static boolean isNotNull(Collection<?> coll) {
        return !isNull(coll);
    }//from   w ww.  j  a v a  2 s . c  om

    public static boolean isNull(Collection<?> coll) {
        if (coll == null) {
            return true;
        }
        if (coll.size() == 0) {
            return true;
        }
        return false;
    }
}

Related

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