首页 > 其他 > 详细

各种Map

时间:2015-02-16 02:02:11      阅读:207      评论:0      收藏:0      [点我收藏+]
 HashMap is implemented as a hash table, and there is no ordering on keys or values.
TreeMap is implemented based on red-black tree structure, and it is ordered by the key.
LinkedHashMap preserves the insertion order
Hashtable is synchronized, in contrast to HashMap.

各种Map

原文:http://www.blogjava.net/stevenjohn/archive/2015/02/15/422937.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!