Android Collection Empty Check isNull(Collection coll)

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

Description

is Null

Declaration

public static boolean isNull(Collection<?> coll) 

Method Source Code

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

public class Main {

    public static boolean isNull(Collection<?> coll) {
        if (coll == null) {
            return true;
        }//  w  w  w .j  av a  2 s  .  c  o  m
        if (coll.size() == 0) {
            return true;
        }
        return false;
    }
}

Related

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