数据结构-HashMap Hashtable HashSet
2015-03-04 00:24
351 查看
They are entirely different constructs. A
an implementation of
A Map maps keys to values. The key look up occurs using the hash.
On the other hand, a
an implementation of
A Set is designed to match the mathematical model of a set. A
use a
back its implementation, as you noted. However, it implements an entirely different interface.
HashMap:
http://www.pakzilla.com/2009/08/24/hashmap-vs-hashtable-vs-hashset/
HashMapis
an implementation of
Map.
A Map maps keys to values. The key look up occurs using the hash.
On the other hand, a
HashSetis
an implementation of
Set.
A Set is designed to match the mathematical model of a set. A
HashSetdoes
use a
HashMapto
back its implementation, as you noted. However, it implements an entirely different interface.
HashMap:
http://www.pakzilla.com/2009/08/24/hashmap-vs-hashtable-vs-hashset/
相关文章推荐
- HashSet HashMap Hashtable
- HashTable、HashMap与HashSet
- HashSet HashTable HashMap的区别
- HashMap & HashSet & Hashtable
- hashset hashmap hashtable arraylist vector 区别
- HashMap, HashTable and HashSet
- java 数据结构容器之HashSet
- Java HashTable/HashMap/HashSet的区别
- HashTable vs HashMap vs HashSet
- HashMap HashTable HashSet区别剖析
- HashTable HashMap HashSet区别(java) [From 爱做饭的小莹子]
- 再思考Java里的数据结构容器——hash容器:hashset hashmap hashtable
- HashMap Hashtable HashSet
- HashSet HashTable HashMap的区别
- HashMap HashTable HashSet
- HashMap Hashtable ArrayList HashSet
- HashSet HashTable HashMap的区别
- HashSet HashMap Hashtable的区别
- java集合--ArrayList HashSet HashMap Hashtable LinkList
- HashSet HashTable HashMap的区别