摘要: /** * 需要分组的list数据 */ List<User> list = new ArrayList<>(); /** * 将所有的数据根据用户名称进行分组处理 */ Map<String, List<User>> userMap = ListUtil.groupBy(list, new Lis 阅读全文
posted @ 2021-05-19 11:03 卡农的忧伤ろ◆ 阅读(96) 评论(0) 推荐(0)
摘要: public static <T> List<T> deepCopy(List<T> src) throws IOException, ClassNotFoundException { ByteArrayOutputStream byteOut = new ByteArrayOutputStream 阅读全文
posted @ 2021-05-19 10:54 卡农的忧伤ろ◆ 阅读(92) 评论(0) 推荐(0)