开发者

Maps.uniqueIndex() for Multimap?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜