Android Collection Empty Check isNotNull(Collection collection)

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

Description

is Not Null

Declaration

public static boolean isNotNull(Collection<?> collection) 

Method Source Code

//package com.java2s;

import java.util.Collection;

public class Main {
    public static boolean isNotNull(Collection<?> collection) {
        if (collection != null && collection.size() > 0) {
            return true;
        }//from  www  .jav a2s.  c  o m
        return false;
    }
}

Related

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