260511_01_ENH: CollectionUtil 추가

This commit is contained in:
2026-05-11 12:25:48 +09:00
parent e376eb3bd1
commit 29b1fa1e97
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
package com.kri.common.feature.util;
import java.util.Collection;
import java.util.Map;
public final class CollectionUtil {
public static boolean isEmpty(Map<?, ?> map) {
return map == null || map.isEmpty();
}
public static boolean isEmpty(Collection<?> collection) {
return collection == null || collection.isEmpty();
}
}