guava icon indicating copy to clipboard operation
guava copied to clipboard

Feature request: Immutable variants for collector grouping APIs

Open scottTomaszewski opened this issue 7 years ago • 1 comments

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!

scottTomaszewski avatar Sep 26 '18 23:09 scottTomaszewski

That would be really nice to have.

vkolodrevskiy avatar Feb 26 '24 13:02 vkolodrevskiy