Home
Sign Up
Sign In
V2EX
›
Java
HashMap 的中 entrySet 是什么时候存入 entry 的?
kikione
·
May 30, 2021
· 2601 views
This topic created in 1990 days ago, the information mentioned may be changed or developed.
HashMap 的中 entrySet 的实现原理是什么?
都没有看到赋值的操作,entrySet 的 entry 是什么时候存入的,源码中并没有此函数
entryset
hashmap
entry
存入
3 replies
•
2021-06-02 14:14:28 +08:00
aijam
May 30, 2021
1
HashMap 内部有个 array 存 entry,put()/remove()都是操作这个 array,entrySet 直接读取这个 array
bthulu
Jun 1, 2021
2
entrySet 里从来不放 entry
vindac
Jun 2, 2021
3
仔细看了一下,楼上说的是对的。entrySet 只是以一个引用
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
4694 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 29ms ·
UTC 01:43
·
PVG 09:43
·
LAX 17:43
·
JFK 20:43
♥ Do have faith in what you're doing.
❯