详解hashcode和equals

1. equals 和 == 的区别,hashcode 是什么 java.lang.Object 类中提供了一些基本的方法 /** * Returns a hash code value for the object. This method is * supported for the benefit of hash tables such as those provided by * {@li
相关文章
相关标签/搜索