LinkedList是基于双向链表实现的,LinkedList同样是非线程安全的,只在单线程下适合使用。
public class LinkedList<E> extends AbstractSequentialList<E> implements List<E>, Deque<E>, Cloneable, java.io.Serializable
它继承于AbstractSequentialList,实现了List、Deque、Cloneable、 Serializable等接口。
LinkedList实现了List接口,可以对它进行队列操作;实现了Deque接口,即能将LinkedList当作双端队列使用;实现了Cloneable接口,能被克隆;实现了Serializable接口,因此它支持序列化,能够通过序列化传输。
第一节(纯手写LinkeList集合-项目演示)
第二节(纯手写LinkeList集合-链表和数组数据结构区别)
第三节(纯手写LinkeList集合-LinkeList集合底层源码分析)
第四节(纯手写LinkeList集合-实现Add方法)
第五节(纯手写LinkeList集合-实现Get方法)
第六节(纯手写LinkeList集合-实现remove方法)
第七节(纯手写LinkeList集合-使用下标位置Add方法)