摘要: 1.介绍 1.1 整体结构 1.2 相关接口,类,方法 Executor 顶层接口 一个运行新任务的简单接口,只声明了一个方法: void execute(Runnable command); 返回值为 void,参数为Runnable 类型,用来执行传进去的任务的; ExecutorService 阅读全文
posted @ 2021-01-29 16:30 将军上座 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 结构 数组+链表 结构 ; static class Node<K,V> implements Map.Entry<K,V> { final int hash; final K key; V value; Node<K,V> next; //同buket上下一个节点 } transient Node 阅读全文
posted @ 2021-01-29 10:37 将军上座 阅读(69) 评论(0) 推荐(0) 编辑