2 回答

Nostark
TA贡献1条经验 获得超1个赞
我认为首先要认清equals方法和hashcode方法分别是用来干嘛的,然后明确他他们两个之间什么关系就够了为什么重写equals()就一定要重写hashCode()方法?
添加回答
举报
0/150
提交
取消