List, Map, Set three interfaces, accessing elements, what are the differences?

  • List index to access the element, the element may be repeated
  • Set not store duplicate elements
  • Map save key-value pairs mapping, mapping relationship can be one to one, many to one
  • List-based arrays and linked lists have achieved in two ways
  • Set, Map hash based storage containers have achieved and red-black tree in two ways
  • Set-based Map implementation, Set in the element value is the Map key


 


 

All resources resources are summarized in the public No.


 

 

Guess you like

Origin www.cnblogs.com/ConstXiong/p/11921570.html