Sure. Use Collectors.groupingBy to build the Map<String, Set<String>> for you. return resultList.stream() .collect(Collectors.
確定! 回上一頁