hashMap和TreeMap的适用场景

public class HashMap<K,V>优化        extends AbstractMap<K,V>排序        implements Map<K,V>,Cloneable,Serialiable接口        HashMap:基于哈希表实现,使用HashMap要求添加的键明肯定义了hasCode()和equals(),为了优化hashMap空间的使用,能够调优初始容量
相关文章
相关标签/搜索