【手撕源码系列】LinkedList源码解读—Java8版本
一、LinkedList简介
LinkedList顶部有一段很长的注释,大概的介绍了LinkedList。
1.1 原文
/**
* Doubly-linked list implementation of the {@code List} and {@code Deque}
* interfaces. Implements all optional list operations, and permits all
* elements (including {@code null}).
*
* <p>All of the operations perform as could be expected for a doubly-linked
* list. Operations that index into the list will traverse the list from
* the beginning or the end, whichever is closer to the specified index.
*
* <p><strong>Note that this implementation is not synchronized.</strong&