Skip to content

Commit cff40aa

Browse files
author
代码风水师
committed
0
1 parent 24044e7 commit cff40aa

3 files changed

Lines changed: 33 additions & 0 deletions

File tree

‎resource/markdown/collection/BinaryTrees.md‎

Whitespace-only changes.

‎resource/markdown/collection/ConcurrentHashMap1.7v.md‎

Whitespace-only changes.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
> 本文是基于 `jdk1.7.0_79` 分析
2+
3+
<h3 style="padding-bottom:6px; padding-left:20px; color:#ffffff; background-color:#E74C3C;">一、继承关系</h3>
4+
5+
![HashMap1.7vExtend](http://pgq1yfr0p.bkt.clouddn.com/image/java/collectionHashMap1.7vExtend.png)
6+
7+
<h3 style="padding-bottom:6px; padding-left:20px; color:#ffffff; background-color:#E74C3C;">二、数据结构</h3>
8+
9+
>底层结构:数组+线性链表
10+
11+
#### 重要属性
12+
13+
```java
14+
/** 默认初始容量 16 */
15+
static final int DEFAULT_INITIAL_CAPACITY = 1 << 4; // 既 16
16+
/** 最大容量 10.7亿+(这里也用到效率高的位运算) */
17+
static final int MAXIMUM_CAPACITY = 1 << 30;
18+
/** 默认负载因子 0.75 */
19+
static final float DEFAULT_LOAD_FACTOR = 0.75f;
20+
/** 默认实际存储元素数量的阈值 8 */
21+
static final int TREEIFY_THRESHOLD = 8;
22+
/** */
23+
24+
```
25+
26+
27+
28+
<h3 style="padding-bottom:6px; padding-left:20px; color:#ffffff; background-color:#E74C3C;">三、添加元素</h3>
29+
30+
31+
32+
<h3 style="padding-bottom:6px; padding-left:20px; color:#ffffff; background-color:#E74C3C;">四、删除元素</h3>
33+

0 commit comments

Comments
 (0)