![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
源码阅读
QLanSeHY
这个作者很懒,什么都没留下…
展开
-
ArrayList源码阅读
ArrayList源码阅读 // 序列化ID private static final long serialVersionUID = 8683452581122892189L; // 默认初始化容量 private static final int DEFAULT_CAPACITY = 10; // 空数组 private static final Object[] EMPTY...原创 2019-07-31 21:41:23 · 106 阅读 · 0 评论 -
JDK1.8ConcurrentHashMap源码分析
JDK1.8ConcurrentHashMap源码分析 // table的最大容量 private static final int MAXIMUM_CAPACITY = 1 << 30; // 默认table的大小,表的大小必须为2的幂次方 private static final int DEFAULT_CAPACITY = 16; // 最大数组大小 st...原创 2019-08-05 20:06:32 · 123 阅读 · 0 评论 -
JDK1.8 HashMap源码解析
JDK1.8 HashMap源码解析 // 序列号 private static final long serialVersionUID = 362498820763181265L; // 默认的初始容量大小是16 static final int DEFAULT_INITIAL_CAPACITY = 1 << 4; // aka 16 //hashmap的最大容量...原创 2019-08-05 20:06:24 · 113 阅读 · 0 评论 -
LinkedList集合源码
LinkedList集合源码节点的基本结构: private static class Node<E> { E item; //表示该节点包含的值 Node<E> next; //表达当前节点的下一个节点 Node<E> prev; //表示当前节点的上一个节点 Node(Node<E> prev, ...原创 2019-08-05 20:05:09 · 71 阅读 · 0 评论