HashMap扩容的背景及原理

/** * 初始化容量 * The default initial capacity - MUST be a power of two. */ static final int DEFAULT_INITIAL_CAPACITY = 1 << 4; // aka 16 /** * 负载因子/阈值 * The load factor used when none specified in c
相关文章
相关标签/搜索