scoreItemTableSourceMapentrySet stream collectCollectorstoMapMapEntrygetKey s - thisgetExportContentsgetValue o n - o 非空判断不使用if判断
scoreItemTableSourceMap.entrySet() .stream() .filter(entry -> entry.getValue() != null) .collect(Collectors.toMap(Map.Entry::getKey, s -> this.getExportContent(s.getValue()), (o, n) -> o))
原文地址: https://www.cveoy.top/t/topic/hNTz 著作权归作者所有。请勿转载和采集!