All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.anwen.mongo.toolkit.CollUtil Maven / Gradle / Ivy

There is a newer version: 2.1.6.1
Show newest version
package com.anwen.mongo.toolkit;

import java.util.Collection;

/**
 * @author JiaChaoYang
 * @project mongo-plus
 * @description 集合工具类
 * @date 2023-09-22 11:48
 **/
public class CollUtil {

    public static boolean isNotEmpty(Collection collection){
        return collection != null && !collection.isEmpty();
    }

    public static boolean isEmpty(Collection collection){
        return !isNotEmpty(collection);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy