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.Collection; import java.util.Map; public class Main { /**// ww w . j a v a2 s . co m * ************************************************************* */ public static boolean isEmpty(Collection collection) { return null == collection || collection.isEmpty(); } public static boolean isEmpty(Map map) { return null == map || map.isEmpty(); } public static boolean isEmpty(Object[] objs) { return null == objs || objs.length <= 0; } public static boolean isEmpty(int[] objs) { return null == objs || objs.length <= 0; } public static boolean isEmpty(CharSequence charSequence) { return null == charSequence || charSequence.length() <= 0; } }