xuMengqi's Blog

Java集合框架中Map接口有哪些实现?


目录


  1. 1. Map接口详解
    1. 1.1. Map接口有哪些实现?
    2. 1.2. Map接口的实现有什么不同?
  2. 2. HashMap详解
    1. 2.1. HashMap是如何设计的?
    2. 2.2. HashMap是如何解决哈希冲突的?
    3. 2.3. HashMap的哈希函数是如何设计的?
    4. 2.4. HashMap为什么需要扩容?
    5. 2.5. HashMap为提升性能做了哪些设计?
    6. 2.6. HashMap是如何添加键值对的?
    7. 2.7. HashMap是如何根据键找到值的?
    8. 2.8. HashMap是如何扩容的?
  3. 3. LinkedHashMap详解
    1. 3.1. LinkedHashMap是如何设计的?
    2. 3.2. LinkedHashMap是如何实现有序的?
    3. 3.3. LinkedHashMap和HashMap有什么区别?
  4. 4. Hashtable详解
    1. 4.1. Hashtable是如何设计的?
    2. 4.2. Hashtable是如何添加键值对的?
    3. 4.3. Hastable是如何扩容的?
    4. 4.4. HashMap和Hashtable有什么区别?
    5. 4.5. Properties是如何设计的?
  5. 5. TreeMap详解
    1. 5.1. TreeMap是如何设计的?
    2. 5.2. TreeMap是如何实现有序的?
    3. 5.3. HashMap和TreeMap有什么区别?
  6. 6. EnumMap详解
    1. 6.1. EnumMap是如何设计的?
    2. 6.2. HashMap和EnumMap有什么区别?
  7. 7. 参考文档