摘要: 构造方法 /** * Creates a new, empty map with the default initial table size (16). * 默认大小16 */ public ConcurrentHashMap() { } /** * 自定义大小的构造函数 */ public Co 阅读全文
posted @ 2019-02-23 15:15 华丽D转身 阅读(303) 评论(1) 推荐(0) 编辑
摘要: HashMap的节点 // 基础节点,单链表 static class Node<K,V> implements Map.Entry<K,V> { final int hash; final K key; V value; Node<K,V> next; Node(int hash, K key, 阅读全文
posted @ 2019-02-23 15:14 华丽D转身 阅读(375) 评论(0) 推荐(0) 编辑