随笔分类 -  常用工具类

摘要:import java.util.regex.Matcher; import java.util.regex.Pattern; public class EmojiToString { /** * 将str中的emoji表情转为byte数组 * * @param str * @return */ public static St... 阅读全文
posted @ 2018-11-27 13:39 Kero小柯 阅读(1000) 评论(0) 推荐(0)
摘要:* 集合操作常用方法类. * * * @author 柯 */ public class ListUtil { /** * 判断List不为空,非空返回true,空则返回false * * @param list * @return boolean */ public static boolean isNotNull... 阅读全文
posted @ 2018-11-06 13:09 Kero小柯 阅读(2525) 评论(0) 推荐(0)
摘要:public class RandomUtil { private static final Logger log= LoggerFactory.getLogger(RandomUtil.class); public static int getRandomValue(int min,int max){ Random random=new Random(); ... 阅读全文
posted @ 2018-11-06 13:06 Kero小柯 阅读(203) 评论(0) 推荐(0)
摘要:/** * 获取列表总页数 */ public static int getListPages(List list,int pageNum,int pageSize ){ if (isNull(list)){ return 0; } BaseQuery baseQuery=new Bas... 阅读全文
posted @ 2018-08-28 13:18 Kero小柯 阅读(1056) 评论(0) 推荐(1)