How to create a Multimap from a Map>?

前端 未结 6 1266
难免孤独
难免孤独 2020-12-03 01:02

I didn\'t find such a multimap construction... When I want to do this, I iterate over the map, and populate the multimap. Is there an other way?

final Map<         


        
6条回答
  •  [愿得一人]
    2020-12-03 01:09

    UPDATE: For what you're asking, I think you're going to need to fall back to Multimap.putAll.

提交回复
热议问题