摘要:
构造方法 /** * Creates a new, empty map with the default initial table size (16). * 默认大小16 */ public ConcurrentHashMap() { } /** * 自定义大小的构造函数 */ public Co 阅读全文
摘要:
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, 阅读全文