hashCode和equals方法的关系

equals相等,hashcode必相等;hashcode相等,equals可能不相等。

posted @ 2019-09-05 17:30  Java-Legend  阅读(508)  评论(0编辑  收藏  举报