首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Google Guava集合2:Multi地图

2012-08-25 
Google Guava集合2:MultimapMultimap是guava中一个有用的工具类,下面我来介绍一下。由来:你是不是经常需要

Google Guava集合2:Multimap
Multimap是guava中一个有用的工具类,下面我来介绍一下。

由来:
你是不是经常需要一个这样的数据结构:

ListMutlimap<String,String> myMutlimap = ArrayListMultimap.create();List<string> myValues = myMutlimap.get("myKey");  // Returns a List, not a Collection.



好了,基本就是这样,你可以参考API获取更多信息:http://docs.guava-libraries.googlecode.com/git-history/release09/javadoc/com/google/common/collect/Multimap.html

热点排行