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

zikai.apijson.core.CollectionUtils Maven / Gradle / Ivy

The newest version!
package zikai.apijson.core;

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

public class CollectionUtils {
    public static boolean isEmpty(Map target) {
        return target == null || target.isEmpty();
    }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy