io.github.linmoure.utils.CollectionUtils Maven / Gradle / Ivy
package io.github.linmoure.utils;
import java.util.Collection;
import java.util.Map;
public abstract class CollectionUtils {
public static boolean isEmpty(Map, ?> map) {
return map == null || map.isEmpty();
}
public static boolean isEmpty(Collection> collection) {
return collection == null || collection.isEmpty();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy