`

collection,list,set,map

 
阅读更多
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)
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics