Here you can find the source of isCollectionEmpty(Collection> value)
public static boolean isCollectionEmpty(Collection<?> value)
//package com.java2s; /**/*from w w w.j a v a 2 s . c o m*/ * Copyright (c)2010-2011 Enterprise Website Content Management System(EWCMS), All rights reserved. * EWCMS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * http://www.ewcms.com */ import java.util.Collection; public class Main { public static boolean isCollectionEmpty(Collection<?> value) { if (isNull(value)) { return true; } return value.isEmpty(); } public static boolean isNull(Object value) { return value == null ? true : false; } }