摘要: https://aaaaaashu.gitbooks.io/mac-dev-setup/content/ https://www.jianshu.com/p/77a4349bf67b https://github.com/altercation/solarized https://www.zhihu 阅读全文
posted @ 2018-09-30 20:22 一碗正气粥 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 两个对象的hashcode相等并不能说明这两个对象equals,因为hashcode必然存在hash冲突,无论概率高低,因此严格意义上的equals方法不能仅使用两个对象的hashcode来判断他们是否equals。 有些时候我们需要重写hashcode和equal方法。例如我们需要将自定义类 点: 阅读全文
posted @ 2018-07-25 13:29 一碗正气粥 阅读(146) 评论(0) 推荐(0) 编辑