关于HashMap的两个小知识点
摘要:
1 在put的时候,使用的并不是原始的hash值 而是高16位不变,低16位是 高十六位和低十六位异或 static final int hash(Object key) { int h; return (key == null) ? 0 : (h = key.hashCode()) ^ (h >> 阅读全文
posted @ 2020-10-19 17:46 MaXianZhe 阅读(107) 评论(0) 推荐(0)