Skip to content

Instantly share code, notes, and snippets.

@leechoongyon
Created July 1, 2020 04:22
Set<String> members = new HashSet<>();
...
...
Map<String, Integer> map = members.stream()
.map(s -> groupName + Constants.SEPARATOR + s)
.collect(Collectors.toMap (
s->s, s->getXxxCount(s)))
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment