mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
Update arraylist-source-code.md
内容说明不清楚
This commit is contained in:
parent
636e7e6e19
commit
5bf177ffa0
@ -150,7 +150,8 @@ public class ArrayList<E> extends AbstractList<E>
|
||||
ensureExplicitCapacity(minCapacity);
|
||||
}
|
||||
}
|
||||
//得到最小扩容量
|
||||
//1.得到最小扩容量
|
||||
//2.通过最小容量扩容
|
||||
private void ensureCapacityInternal(int minCapacity) {
|
||||
if (elementData == DEFAULTCAPACITY_EMPTY_ELEMENTDATA) {
|
||||
// 获取“默认的容量”和“传入参数”两者之间的最大值
|
||||
|
Loading…
x
Reference in New Issue
Block a user