hashmap 是先比较hashcode 还是 equals
答案:1 悬赏:40 手机版
解决时间 2021-04-02 23:49
- 提问者网友:感性作祟
- 2021-04-02 12:11
hashmap 是先比较hashcode 还是 equals
最佳答案
- 五星知识达人网友:鸠书
- 2021-04-02 12:53
* Returns a hash code value for the object. This method is
* supported for the benefit of hashtables such as those provided by
*
*
* supported for the benefit of hashtables such as those provided by
*
java.util.Hashtable
. *
* The general contract of hashCode
is:
*
* Whenever it is invoked on the same object more than once during
* an execution of a Java application, the hashCode method
* must consistently return the same integer, provided no information
* used in equals co
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯