2020年3月27日
摘要: 1. LinkedHashMap是继承于HashMap,是基于HashMap和双向链表来实现的。2. HashMap无序;LinkedHashMap有序,可分为插入顺序(先进先出)和访问顺序(最近最少)两种。 如果是访问顺序,那put和get操作已存在的Entry时,都会把Entry移动到双向链表的 阅读全文
posted @ 2020-03-27 00:41 左手指月 阅读(314) 评论(0) 推荐(0) 编辑