标签:java collect code lis read list 集合 map cto
1.设置集合中全部元素的某一个属性的值
Integer status = NoticeReadStatusEnum.READED.getCode(); List<NoticeSendRecord> collect = noticeSendRecordList.stream().map(record -> { record.setStatus(status); return record; }).collect(Collectors.toList());
标签:java collect code lis read list 集合 map cto
原文地址:https://www.cnblogs.com/tubashu/p/14949677.html