I want to translate a List of objects into a Map using Java 8\'s streams and lambdas.
This is how I would write it in Java 7 and below.
private Map&l
Here's another one in case you don't want to use Collectors.toMap()
Map result = choices.stream().collect(HashMap::new, (m, c) -> m.put(c.getName(), c), (m, u) -> {});