Here you can find the source of isEmpty(Collection list)
@SuppressWarnings("rawtypes") public static boolean isEmpty(Collection list)
//package com.java2s; //License from project: Apache License import java.util.Collection; public class Main { @SuppressWarnings("rawtypes") public static boolean isEmpty(Collection list) { return (list == null || list.size() == 0); }//from ww w . j a v a 2 s . c o m public static boolean isEmpty(Object[] pListIds) { if (pListIds == null) return false; return pListIds.length == 0; } }