cn.lastwhisper.trace.common.util.CollectionUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trace-spring-boot-starter Show documentation
Show all versions of trace-spring-boot-starter Show documentation
Used to invoke the chain visualization.
The newest version!
package cn.lastwhisper.trace.common.util;
import org.springframework.util.CollectionUtils;
import java.util.Collection;
/**
* 集合工具类
* @author lastwhisper
* @date 2020/2/28
*/
public class CollectionUtil {
public static boolean isNull(Collection> collection) {
return collection == null;
}
public static boolean isEmpty(Collection> collection) {
return CollectionUtils.isEmpty(collection);
}
}