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

com.qq.tars.common.util.CollectionUtils Maven / Gradle / Ivy

package com.qq.tars.common.util;

import java.util.Collection;

public class CollectionUtils {
    private CollectionUtils() {

    }

    public static boolean isEmpty(Collection collction) {
        if (collction == null || collction.isEmpty()) {
            return Boolean.TRUE;
        } else {
            return Boolean.FALSE;
        }
    }

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




}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy