当前位置:网站首页>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
*/边栏推荐
- 马志强:语音识别技术研究进展和应用落地分享丨RTC Dev Meetup
- [new open source project] dynamic configuration task scheduling framework gobrs async joins the dromara open source community
- Determine whether a string of numbers is the result of a quick sort
- VMware virtual machine IP, gateway settings. The virtual machine cannot be pinged to the Internet
- Basic use of sonarqube platform
- 重磅直播!ORB-SLAM3系列之特征匹配(MLPnP、词袋模型等)。
- Forest v1.5.22 release! Kotlin support
- Pyqt5:slider slider control
- 已解决: JDBC连接Mysql失败报错: 'The last packet sent successfully to the server was 0 milliseconds ago. '
- Ora-00392 ora-00312 error handling
猜你喜欢

新来的同事问我 where 1=1 是什么意思???

Arduino uses nRF24L01 module for wireless communication

RS232/RS485转4G DTU 上传基于Modbus协议的温湿度传感器数据到远程TCP服务器

Go 语言的优势和学习路线图

Hqchart nailing applet tutorial 1- create a K-line diagram

B_QuRT_User_Guide(16)

Hough transform of image

【大咖秀】博睿数据眼中的AIOps,选择正确的赛道正确的人

Arduino使用NRF24L01模块进行无线通信

Pyqt5:qlineedit control code
随机推荐
How to state clearly and concisely the product requirements?
Whether the outbound sequence is the inbound sequence
文件合成器
MySQL学习笔记:JSON嵌套数组查询
近期学习和更新计划
Arduino使用NRF24L01模块进行无线通信
ROS基础 - 使用 launch 文件(一) - 批量启动多个ROS节点
CPT 102_ LEC 20
Fuluo classic source code Fuluo classic system development principle sharing
Pyqt5:slider slider control
If you understand the logic of mining and carbon neutrality, you will understand the 100 billion market of driverless mining areas
Necessity for banks to choose electronic bidding procurement
蓝桥杯_小蓝吃糖果_鸽巢原理 / 抽屉原理
Why did those who left Beijing, Shanghai and Guangzhou with a smile cry in the end?
20220610 Friday
UBIFS FAQ and HOWTO
通过程序启动QQ,实现自动登录.
B_QuRT_User_Guide(19)
pip 安装 qt5 。
Wechat applet