Here you can find the source of isEmptyCollection(Object obj)
@SuppressWarnings("rawtypes") public static boolean isEmptyCollection(Object obj)
//package com.java2s; //License from project: Apache License import java.util.Collection; public class Main { @SuppressWarnings("rawtypes") public static boolean isEmptyCollection(Object obj) { return obj == null || ((Collection) obj).size() == 0; }//from ww w .ja v a2 s . c o m }