HashMap總結

HashMap:       結構:                jdk1.7結構爲 數組+鏈表                jdk1.8後 結構爲 數組+鏈表+紅黑樹          每個節點是一個Node,實現了Entry接口   Entry<K,V>        Node :                 字段:key,value,hash,next (如下) next(hash衝
相關文章
相關標籤/搜索