【手撕源码系列】ArrayList源码解读—Java8版本
一、ArrayList简介
ArrayList顶部有一段很长的注释,大概的介绍了ArrayList。
1.1 原文
/**
* Resizable-array implementation of the <tt>List</tt> interface. Implements
* all optional list operations, and permits all elements, including
* <tt>null</tt>. In addition to implementing the <tt>List</tt> interface,
* this class provides methods to manipulate the size of the array that is
* used internally to store the list. (This class is roughly equivalent to
* <tt>Vector</tt>, except that it is unsynchronized.)
*
* <p>The <tt>size</tt>, <