当前位置:网站首页>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
*/边栏推荐
- Go language advantages and learning Roadmap
- intXX_ T and int_ fastXX_ T what is the difference- What is the difference between intXX_ t and int_ fastXX_ t?
- Can Xiaoxiang life become the "Yonghui" in the discount industry after the completion of the round a financing of tens of millions of yuan?
- Explication du cours de graphacademy: neo4j Graph Data Science Foundation
- Necessity for banks to choose electronic bidding procurement
- GraphAcademy 课程讲解:《Neo4j 图数据科学基础》
- HQChart实战教程55-欧易网K线面积图
- AOSP ~ modify default volume
- 数组全全排列
- OpenJudge NOI 1.13 18:Tomorrow never knows?
猜你喜欢
随机推荐
Go 语言的优势和学习路线图
B_QuRT_User_Guide(19)
pip 安装 qt5 。
OpenJudge NOI 1.13 18:Tomorrow never knows?
Cmake common commands
ASLR
How to ensure reliable delivery of messages?
Array full permutation
Why did those who left Beijing, Shanghai and Guangzhou with a smile cry in the end?
Go语言之Go 快速入门篇(一):第一个 Go 程序
怎样简洁明了地说清楚产品需求?
怎样确保消息的可靠性投递?
Helm deploy traifik ingress
Go language advantages and learning Roadmap
Longest increasing subsequence
VMware virtual machine IP, gateway settings. The virtual machine cannot be pinged to the Internet
Cygwin reports an error child_ info_ fork::abort: XXX. dll: Loaded to different address: parent(XXX) != child(XXX)
Arduino uses nRF24L01 module for wireless communication
postgresql源码学习(十八)—— MVCC③-创建(获取)快照
Forest v1.5.22 release! Kotlin support








