views:

553

answers:

1

Is there an equivalent to the nice MapMaker for MultiMaps? currently i create the cache like this:

    public static Map<Session,List<Person>> personCache = new MapMaker().weakKeys().makeMap();

the whole point of MultiMap is to avoid the nested List Values. is there any way to construct the multimap with weak keys?

+6  A: 

Unfortunately not. Yet. Could you file a MultimapMaker feature request in our issues db? http://google-collections.googlecode.com

done. http://code.google.com/p/google-collections/issues/detail?id=142
Andreas Petersson