From 89f95ac293420e542a38fc2a975e98ed264ab0d1 Mon Sep 17 00:00:00 2001
From: Silverados <295843706@qq.com>
Date: Tue, 26 Mar 2019 23:30:44 +0800
Subject: [PATCH] =?UTF-8?q?Update=20Java=20=E5=AE=B9=E5=99=A8.md?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
这这这没有因果关系啊:实现了 RandomAccess 接口,因此支持随机访问。
而且应该是 快速随机访问。
Marker interface used by List 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.
---
"docs/notes/Java \345\256\271\345\231\250.md" | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git "a/docs/notes/Java \345\256\271\345\231\250.md" "b/docs/notes/Java \345\256\271\345\231\250.md"
index 22ee80d6..4221beac 100644
--- "a/docs/notes/Java \345\256\271\345\231\250.md"
+++ "b/docs/notes/Java \345\256\271\345\231\250.md"
@@ -114,7 +114,7 @@ List list = Arrays.asList(1, 2, 3);
### 1. 概览
-实现了 RandomAccess 接口,因此支持随机访问。这是理所当然的,因为 ArrayList 是基于数组实现的。
+因为 ArrayList 是基于数组实现的,所以支持快速随机访问。RandomAccess接口标识着该类支持快速随机访问。
```java
public class ArrayList extends AbstractList
--
GitLab