摘要: 阅读全文
posted @ 2018-01-14 14:55 think的海角 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 1、Map就是散列数组+链表,集合框架中,所说的能否重复,指equals是否为true,为true重复了,就覆盖;一般,equals为true,hashcode应该相同,所以通常重写equals方法同时也要重写hashcode方法。对于非hash*类,则与hashcode没关系。 阅读全文
posted @ 2018-01-14 14:54 think的海角 阅读(129) 评论(0) 推荐(0) 编辑