Create Weak Multimap with Google Collections
-
09-09-2019 - |
Question
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?
Solution
Unfortunately not. Yet. Could you file a MultimapMaker feature request in our issues db? http://google-collections.googlecode.com
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow