collection,list,set,map

来源:互联网 发布:免费预算软件 编辑:程序博客网 时间:2024/05/01 18:32
Collection/Map 接口 成员重复性 元素存放顺序(Ordered/Sorted) 元素中被调用的方法 基于那中数据结构来实现的 
HashSet Set Unique elements No order equals()     hashCode() Hash 表 
LinkedHashSet Set Unique elements Insertion order  equals()  hashCode() Hash表和双向链表 
TreeSet SortedSet Unique elements Sorted equals() 
compareTo() 平衡树(Balanced tree) 
ArrayList List Allowed Insertion order equals() 数组 
LinkedList List Allowed Insertion order equals() 链表 
Vector List Allowed Insertion order equals() 数组 
HashMap Map Unique keys No order equals() 
hashCode() Hash 表 
LinkedHashMap Map Unique keys Key insertion order/Access order of entries equals() 
hashCode() Hash 表和双向链表 
Hashtable Map Unique keys No order equals() 
hashCode() Hash 表 
TreeMap SortedMap Unique keys Sorted in key order equals() 
compareTo() 平衡树(Balanced tree)
0 0
原创粉丝点击