摘要: 这篇文章主要是介绍 hashCode 和 equals 之间的关系。 在此之前,我们应该了解 hashCode 和 equals 的作用分别是什么? hashCode 在 Object 类中 hashCode 的定义如下: public native int hashCode(); 这是一个由 na 阅读全文
posted @ 2021-12-03 15:44 猫杰瑞 阅读(577) 评论(0) 推荐(0)