实现HashMap泛型类

HaspMap结合了数组和链表量二者的优势 从而查找效率因为数组获得大大提升,修改效率因为链表而大大提升java hash值是根据key的hashcode() 经过散列算法进行计算的web package testMap; /** * * @author sofency * */ public class SofencyHashMap4<K,V> { Node2<K,V>[] table;
相关文章
相关标签/搜索