Advertisement
Guest User

Components Map

a guest
Apr 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.18 KB | None | 0 0
  1.         Map<String, Component> componentsMap= componentList.stream()
  2.                 .collect(Collectors.toMap(component -> component.getComponentType().toString(), Function.identity()));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement