未验证 提交 89f95ac2 编写于 作者: S Silverados 提交者: GitHub

Update Java 容器.md

这这这没有因果关系啊:实现了 RandomAccess 接口,因此支持随机访问。

而且应该是 快速随机访问。
Marker interface used by <tt>List</tt> implementations to indicate that
 * they support fast (generally constant time) random access.  The primary
 * purpose of this interface is to allow generic algorithms to alter their
 * behavior to provide good performance when applied to either random or
 * sequential access lists.
上级 f2e32807
......@@ -114,7 +114,7 @@ List list = Arrays.asList(1, 2, 3);
### 1. 概览
实现了 RandomAccess 接口,因此支持随机访问。这是理所当然的,因为 ArrayList 是基于数组实现的
因为 ArrayList 是基于数组实现的,所以支持快速随机访问。RandomAccess接口标识着该类支持快速随机访问
```java
public class ArrayList<E> extends AbstractList<E>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册