forked from fanruan/easyexcel
22 lines
439 B
22 lines
439 B
package com.alibaba.excel.util; |
|
|
|
import java.util.Collection; |
|
import java.util.Map; |
|
|
|
/** |
|
* Collection utils |
|
* |
|
* @author jipengfei |
|
*/ |
|
public class CollectionUtils { |
|
|
|
private CollectionUtils() {} |
|
|
|
public static boolean isEmpty(Collection<?> collection) { |
|
return (collection == null || collection.isEmpty()); |
|
} |
|
|
|
public static boolean isEmpty(Map<?, ?> map) { |
|
return (map == null || map.isEmpty()); |
|
} |
|
}
|
|
|