Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当实现的对象将自己的对象存储为元素时hashCode(),为什么不equals()工作?List
hashCode()
equals()
List
AList的equals关系基于列表的内容。如果其中一个成员是列表本身,则会发生无限递归。同样的问题发生在hashCode.
equals
hashCode