- 博客(1)
- 资源 (9)
- 收藏
- 关注
原创 关于Java覆盖equals方法时必须覆盖hashCode方法
Java中的对象自动继承Object类,而Object类实现了equals方法和hashCode方法: /** * Returns a hash code value for the object. This method is * supported for the benefit of hashtables such as those provided by
2017-03-16 10:06:00 771
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人