2018年4月9日
摘要: https://blog.csdn.net/hqq2023623/article/details/51000153 java中每个对象都有唯一的一个monitor,想拥有一个对象的monitor的话有以下三种方式: 1.执行该对象的同步方法 [java] view plain copy public 阅读全文
posted @ 2018-04-09 15:42 devilwind 阅读(471) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/wuchaodzxx/p/7396599.html 目录 开放定址法 线性探测再散列 二次探测再散列 伪随机探测再散列 再哈希法 链地址法 建立公共溢出区 优缺点 开放散列(open hashing)/ 拉链法(针对桶链结构) 封闭散列(closed 阅读全文
posted @ 2018-04-09 15:03 devilwind 阅读(661) 评论(0) 推荐(0) 编辑
摘要: 原文 https://blog.csdn.net/sd_csdn_scy/article/details/57083619hashMap源码获取元素的位置: static int indexFor(int h, int length) { // assert Integer.bitCount(len 阅读全文
posted @ 2018-04-09 14:35 devilwind 阅读(2898) 评论(0) 推荐(0) 编辑