阅读背景:

How to implement equals() and hashCode() methods in Java[reproduced]

来源:互联网 

Part I:
equals() (javadoc) must define an equivalence relation (it must be reflexive, symmetric, and transitive). In addition, it must be consistent (if the objects are not modified, then it must keep returning the same value). Furthermore, o.equals(null) must always return false.equals() (javadoc) must define an equiva




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: