![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JDK源码
yun@ABC
这个作者很懒,什么都没留下…
展开
-
ThreadLocal源码学习
public class ThreadLocal<T> { ... } ThreadLocal类中的方法: set(T value) get() setInitialValue() initialValue() set操作: /** * Sets the current thread's copy of this thread-loca...原创 2019-03-19 15:18:19 · 98 阅读 · 0 评论 -
HashMap源码学习(JDK 1.8)
目录 一、数据结构 二、源码学习 1、继承关系 2、成员变量 3、构造函数 4、put()与get() 5、扩容机制 6、其他方法 三、总结 一、数据结构 从源码中可以知道,JDK 1.8的HashMap底层数据结构为数组+单链表+红黑树。 二、源码学习 1、继承关系 public class HashMap<K...原创 2019-03-26 15:34:30 · 109 阅读 · 0 评论