guava
guava copied to clipboard
Feature request: Immutable variants for collector grouping APIs
Today I ran into a case where I would benefit from a Collectors#groupingBy API that returned an ImmutableMap instead of Map. For consistency, the #partitioningBy and #groupingByConcurrent methods should also be included.
If there exists a way to this today, I'm sorry I missed it. Thanks!
That would be really nice to have.