使用Google收藏夹创建弱多图 [英] Create Weak Multimap with Google Collections

查看:100
本文介绍了使用Google收藏夹创建弱多图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有与MultiMaps不错的MapMaker等效的工具? 目前,我创建这样的缓存:

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();

MultiMap的全部要点是避免嵌套列表值.有什么方法可以用弱键构造多图?

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

推荐答案

不幸的是没有.然而.您能否在我们的问题数据库中提交MultimapMaker功能请求? http://google-collections.googlecode.com

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

这篇关于使用Google收藏夹创建弱多图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆