We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 594b453 commit 7dde745Copy full SHA for 7dde745
notes/Java 容器.md
@@ -650,7 +650,7 @@ static int indexFor(int h, int length) {
650
| capacity | table 的容量大小,默认为 16。需要注意的是 capacity 必须保证为 2 的 n 次方。|
651
| size | 键值对数量。 |
652
| threshold | size 的临界值,当 size 大于等于 threshold 就必须进行扩容操作。 |
653
-| loadFactor | 装载因子,table 能够使用的比例,threshold = capacity * loadFactor。|
+| loadFactor | 装载因子,table 能够使用的比例,threshold = (int)(newCapacity * loadFactor)。|
654
655
```java
656
static final int DEFAULT_INITIAL_CAPACITY = 16;
0 commit comments