實現HashMap泛型類

HaspMap結合了數組和鏈表量二者的優勢 從而查找效率因爲數組獲得大大提升,修改效率因爲鏈表而大大提升java hash值是根據key的hashcode() 經過散列算法進行計算的web package testMap; /** * * @author sofency * */ public class SofencyHashMap4<K,V> { Node2<K,V>[] table;
相關文章
相關標籤/搜索