体系结构

graph TD
    A[Collection] -->|Implements| B[Set]
    A[Collection] -->|Implements| C[List]
    B -->|Implements| E[HashSet]
    B -->|Implements| F[TreeSet]
    C -->|Implements| G[ArrayList]
    C -->|Implements| H[LinkedList]
    C -->|Implements| I[Vector]
    style A fill:#f9f,st

Collection

单列集合接口

遍历方式:

  1. 迭代器 不依赖索引 Iterator
  2. 增强for
  3. lambda 表达式

List

接口

实现类:ArrayList、LinkedList、Vector

元素有序、可重复、有索引

列表迭代器:迭代过程中添加元素 add

Set

接口

实现类:HashSet、TreeSet、LinkedHashSet

元素无序、不重复、无索引

Map

双列集合