当前位置:网站首页>Multivalued mapping: arraylistmultimap and hashmultimap
Multivalued mapping: arraylistmultimap and hashmultimap
2022-06-11 03:07:00 【zfoo-framework】
package org.example.testMultimap;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.Multimap;
public class Main {
public static void main(String[] args) {
// {1=[1, 1]}
// Multimap<Integer, String> multimap = ArrayListMultimap.create();
// {1=[1]}
Multimap<Integer, String> multimap = HashMultimap.create();
multimap.put(1, "1");
multimap.put(1, "1");
System.out.println(multimap);
}
}
/*
// summary : ArrayListMultimap HashMultimap Are Multivalued Mappings , value It's all an array , The key is whether the elements inside can be repeated
*/边栏推荐
- 三维GIS行业需求及展望
- How to state clearly and concisely the product requirements?
- AOSP ~ modify WebView default implementation
- Recent learning and update plan
- msg=SolrCore ‘collection1‘ is not available due to init failure: Could not l
- 深入解析问号表达式
- postgresql源码学习(21)—— 故障恢复②-事务日志初始化
- 微信模版消息errcode“:40165,“errmsg“:“invalid weapp pagepath
- Necessity for banks to choose electronic bidding procurement
- B_QuRT_User_Guide(19)
猜你喜欢
随机推荐
B_QuRT_User_Guide(17)
通过程序启动QQ,实现自动登录.
Fuluo classic source code Fuluo classic system development principle sharing
[big guy show] aiops in the eyes of Borui data, choosing the right track and the right people
MySQL is required to sort in ascending order greater than or equal to the current time, and then in descending order less than the current time
Basic use of sonarqube platform
Net core Tianma XingKong series - Interface Implementation for dependency injection and mutual conversion of database tables and C entity classes
怎样确保消息的可靠性投递?
B_ QuRT_ User_ Guide(20)
OpenJudge NOI 1.13 18:Tomorrow never knows?
关于玩家身上有个普通Set并发安全的讨论
巴歇尔槽流量计远程采集物联网关在明渠流量监测的应用
Cmake common commands
How to state clearly and concisely the product requirements?
数组全全排列
B / Qurt Utilisateur Guide (19)
重磅直播!ORB-SLAM3系列之特征匹配(MLPnP、词袋模型等)。
第七章 常用的协议简介(1)
List filtering, sorting, verification and other processing methods
20220610 Friday









