![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
lamda
文章平均质量分 78
W·J
这个作者很懒,什么都没留下…
展开
-
list集合的常用方法
1、对list去重(1)简单的基本类型List<String> a = new ArrayList<String>a.add("1");a.add("2");a.add("1");a=a.stream().distinct().collect(Collectors.toList());a.foreach(b->System.out.println());...原创 2020-03-14 14:51:09 · 418 阅读 · 0 评论 -
两个List 交集
两个List通过相同的属性值进行个别属性赋值需求:List<UserVo> 用户对象 List<CustLoginLogVo> 用户登录对象,将CustLoginLogVo集合中按用户全局ID进行匹配把用户的最后登录时间set到对应的UserVo中UserVo:public class UserVo{ @ApiModelProperty(value = "用...转载 2019-12-18 17:35:35 · 376 阅读 · 0 评论