HashMap源码流程图

时间:2022-07-14 22:35:47
【文件属性】:
文件名称:HashMap源码流程图
文件大小:30KB
文件格式:EDDX
更新时间:2022-07-14 22:35:47
HashMap HashMap源码流程图 一图解析HashMap源码流程 // 默认的HashMap中数组的长度 16 static final int DEFAULT_INITIAL_CAPACITY = 1 << 4; // aka 16 // HashMap中的数组的最大容量 static final int MAXIMUM_CAPACITY = 1 << 30; // 默认的扩容的平衡因子 static final float DEFAULT_LOAD_FACTOR = 0.75f; // 链表转红黑树的 临界值 static final int TREEIFY_THRESHOLD = 8; // 红黑树转链表的 临界值 static final int UNTREEIFY_THRESHOLD = 6 // 链表转红黑树的数组长度的临界值 static final int MIN_TREEIFY_CAPACITY = 64; transient Node[] table;// HashMap中的数组结构 transient int size;// HashMap中的元素个数

网友评论