com.github.yuyenews.concurrent.util.MapsUtil Maven / Gradle / Ivy
The newest version!
package com.github.yuyenews.concurrent.util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Map工具类
*/
public class MapsUtil {
/**
* 判断是否为空
* @param dataMap
* @return
*/
public static boolean isEmpty(Map dataMap){
if(dataMap == null || dataMap.size() == 0){
return true;
}
return false;
}
/**
* 判断是否不为空
* @param dataMap
* @return
*/
public static boolean isNotEmpty(Map dataMap){
return isEmpty(dataMap) == false;
}
/**
* 将dataMap 分成 若干组,每组size条
* @param dataMap 需要分组的Map
* @param size 每组分多少条
* @return
* @param
* @param
*/
public static List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy