Java 代码优化:返回 List<String> 的最佳实践 日期: 2026-04-13 标签: 常规 List<List> collect = manageToolConfigList.stream().filter(f -> StringUtils.equals(f.getType(), String.valueOf(ActivityToolTypeEnum.SCORE_STATISTICS.getValue()))).sorted().map(item -> getScoreCensusToolResult(item.getCode(), enablePriority)).collect(Collectors.toList());List result = collect.stream().flatMap(Collection::stream).collect(Collectors.toList());return result; 原文地址: https://www.cveoy.top/t/topic/pqPH 著作权归作者所有。请勿转载和采集! 免费AI点我,无需注册和登录