HashMap扩容机制、线程安全

HashMap 1.容量 static final int DEFAULT_INITIAL_CAPACITY = 1 << 4;      // HashMap初始容量大小(16)  static final int MAXIMUM_CAPACITY = 1 << 30;               // HashMap最大容量 transient int size;               
相关文章
相关标签/搜索