当前位置:网站首页>List and set
List and set
2022-07-06 11:51:00 【monkeySix】
List Orderly , repeatable
List Implementation class of
- ArrayList By name , As you can see , The bottom layer uses Array , Quick query , Add or delete slowly .
- LinkedList Know by name , The bottom layer uses linked lists , Slow query , Additions and deletions quickly .
- Vector The bottom layer uses arrays , Thread safety , Because the method has synchronized keyword , So it's thread safe .
Set disorder , Do not repeat
Set Implementation class of
- HashSet The bottom layer uses HashMap, use HashMap in key Storing data ensures the uniqueness of data .( disorder , Do not repeat )
- LinkedHashSet According to the name , The bottom layer uses linked lists and HashMap, The linked list ensures order .( Orderly , Not to be repeated )
- TressSet At the bottom are red and black trees .( Orderly , Do not repeat )
边栏推荐
猜你喜欢
随机推荐
wangeditor富文本组件-复制可用
ES6 promise object
[BSidesCF_2020]Had_ a_ bad_ day
FTP file upload file implementation, regularly scan folders to upload files in the specified format to the server, C language to realize FTP file upload details and code case implementation
Those commonly used tool classes and methods in hutool
5G工作原理详解(解释&图解)
Composition des mots (sous - total)
Matlab learning and actual combat notes
What does BSP mean
Detailed explanation of nodejs
express框架详解
[AGC009D]Uninity
Vert. x: A simple login access demo (simple use of router)
ES6 Promise 对象
Codeforces Round #753 (Div. 3)
wangeditor富文本引用、表格使用问题
[Kerberos] deeply understand the Kerberos ticket life cycle
Contiki源码+原理+功能+编程+移植+驱动+网络(转)
Common regular expression collation
[MRCTF2020]套娃