判断集合是否为空 、 工具类

/**
     * 判断集合是否为空
     * 
     * @param list
     *            集合
     */
    public static boolean isEmpty(List list) {
        if (list != null && list.size() > 0) {
            return false;
        } else {
            return true;
        }
    }
原文地址:https://www.cnblogs.com/xjbBill/p/5891933.html