Closed GoogleCodeExporter closed 8 years ago
You can do this using:
Multimaps.invertFrom(Multimaps.forMap(map))
or
Multimaps.index(map.keySet(), Functions.forMap(map))
The first is probably better.
By the way, it sounds like you might be using Multimaps.newMultimap(Map,
Supplier) in
a very different way from how it's intended. The supplier is only supposed to
supply
empty collections. But I'm confused and maybe misunderstood.
Original comment by kevin...@gmail.com
on 25 Jun 2009 at 12:35
Original issue reported on code.google.com by
step...@kestle.homeip.net
on 24 Jun 2009 at 11:32