Java8集合过滤filter

Java8集合过滤filter

List<DiCpPathVO> cpPathVOS = diCpPathVOS.stream()
.filter(diCpPathVO -> diCpPathVO.getBorrowerTypes().equals("cp"))
.collect(Collectors.toList());

猜你喜欢

转载自blog.csdn.net/zhangxue_wei/article/details/103734534