Java Collection Empty isEmpty(Collection collection)

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

Description

is Empty

License

Open Source License

Declaration

public static boolean isEmpty(Collection collection) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.Collection;
import java.util.Map;

public class Main {
    public static boolean isEmpty(Collection collection) {
        if (null == collection)
            return true;
        return collection.isEmpty();
    }//from   w w  w  . ja v  a  2s  . c om

    public static boolean isEmpty(Map collection) {
        if (null == collection)
            return true;
        return collection.isEmpty();
    }
}

Related

  1. isEmpty(Collection collection)
  2. isEmpty(Collection collection)
  3. isEmpty(Collection collection)
  4. isEmpty(Collection collection)
  5. isEmpty(Collection collection)
  6. isEmpty(Collection collection)
  7. isEmpty(Collection collection)
  8. isEmpty(Collection collection)
  9. isEmpty(Collection items)