![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编码
爱吃袜子的二哈
这个作者很懒,什么都没留下…
展开
-
Java8 根据对象成员变量去重
//根据userGroupId去重List groups = userGroups.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() ->new TreeSet<>(Comparator.comparing(UserGroup::getUserGroupId))), ArrayList::new));原创 2020-05-29 14:33:08 · 398 阅读 · 1 评论 -
待优化的代码
List<ActiveSub> activeSubs = ActiveSubMapperUtil.selectSubActiveShopList(activeSub, isInValidityPeriod, page, pageSize); List<Integer> activeIds = activeSubs.stream().map(A...原创 2019-12-02 18:08:16 · 228 阅读 · 0 评论 -
GBK格式文本转为UTF-8格式
/** * gbk格式文本转为utf-8 */public class GBKToUTF8Util { private static String path1 = "C:\\Users\\Desktop\\temp1\\"; private static String path2 = "C:\\Users\\Desktop\\temp2\\"; public sta...原创 2019-09-30 10:50:55 · 523 阅读 · 0 评论