HashMap初始容量与负载因子设置如何影响HashMap性能

下面是HashMap的一个构造函数,两个参数initialCapacity,loadFactor 这关系HashMap的迭代性能。 1 /** 2 * Constructs an empty <tt>HashMap</tt> with the specified initial 3 * capacity and load factor. 4 * 5
相关文章
相关标签/搜索