开发者

Maps.uniqueIndex() for Multimap?

开发者 https://www.devze.com 2023-02-26 16:18 出处:网络
We can use Maps.uniqueIndex() to create a Map out of any Iterable w开发者_运维知识库hich is very handy. But I need to create a Multimap and I\'m having Iterable, is there any nice way to create a Mult

We can use Maps.uniqueIndex() to create a Map out of any Iterable w开发者_运维知识库hich is very handy. But I need to create a Multimap and I'm having Iterable, is there any nice way to create a Multimap from Iterable just like - Maps.uniqueIndex()

If it doesn't have any utility method then would like to see other guava approach to this.


I suspect you want Multimaps.index.

0

精彩评论

暂无评论...
验证码 换一张
取 消