Here you can find the source of isEmpty(Collection> collection)
public static boolean isEmpty(Collection<?> collection)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static boolean isEmpty(Collection<?> collection) { if (null == collection || collection.isEmpty() || collection.size() <= 0) return true; return false; }/*from w w w . j ava 2s. com*/ public static boolean isEmpty(Map<?, ?> map) { if (null == map || map.isEmpty() || map.size() <= 0) return true; return false; } }