java8一个List转化为另外一个List Published on Oct 18, 2023 in 随笔 with 0 comment List filterTags = Lists.newArrayList(); List promotionList = filterTags.stream().map(f -> { Promotion tag = new Promotion(context); tag.setLabel(f); tag.setCode(f); return tag; }).collect(Collectors.toList()); 本文由 admin 创作,采用 知识共享署名4.0 国际许可协议进行许可。本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名。