List pushVOList1 = pushList.stream() .collect(Collectors.groupingBy(Push::getModule)) .entrySet() .stream() .map(entry -> new PushVO(entry.getKey(), PushConverter.INSTANCE.toPushDTO(entry.getValue()))) .collect(Collectors.toList());

ListPushVO pushVOList1 = pushListstream collectCollectorsgroupingByPushgetModule entrySet stream mapentry - PushVObuilder

原文地址: http://www.cveoy.top/t/topic/brQ5 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录