java 将对象集合转为字段值的 list

将对象集合转为字段值的 list

List<Integer> countList = videoVisitorVoList.stream().map(VideoVisitorCountVo::getUserCount).collect(Collectors.toList());

 

posted @ 2024-06-18 12:39  xiluhua  阅读(2)  评论(0编辑  收藏  举报