Java - 集合之间的关系和区别
1.Java集合关系图:
2.List、Map、Set区别:
① List
|
|
|
|
|
|
|
|
② Map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
③ Set
|
HashSet |
TreeSet |
LinkedHashSet |
Order |
|
|
|
permit null? |
|
|
|