Based on Collectors documentation it's as simple as: Map<String, Choice> result = choices.stream().collect(Collectors.toMap(Choice::getName ...
確定! 回上一頁