org.smart4j.framework.util.CollectionUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smart-framework Show documentation
Show all versions of smart-framework Show documentation
Smart Framework is a lightweight Java Web Framework
package org.smart4j.framework.util;
import java.util.Collection;
import org.apache.commons.collections.CollectionUtils;
/**
* 集合操作工具类
*
* @author huangyong
* @since 1.0
*/
public class CollectionUtil {
/**
* 判断集合是否非空
*/
public static boolean isNotEmpty(Collection> collection) {
return CollectionUtils.isNotEmpty(collection);
}
/**
* 判断集合是否为空
*/
public static boolean isEmpty(Collection> collection) {
return CollectionUtils.isEmpty(collection);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy