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

io.soffa.foundation.commons.CollectionUtil Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package io.soffa.foundation.commons;

import java.util.Collection;
import java.util.Map;
import java.util.Set;

public final class CollectionUtil {

    private CollectionUtil() {
    }

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


    public static  boolean isNotEmpty(Map map) {
        return !isEmpty(map);
    }

    public static boolean isNotEmpty(Set set) {
        return !isEmpty(set);
    }

    public static boolean isEmpty(Collection list) {
        return list == null || list.isEmpty();
    }

    public static boolean isEmpty(Set set) {
        return set == null || set.isEmpty();
    }

    public static boolean isEmpty(Map map) {
        return map == null || map.isEmpty();
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy