override equals in Java
摘要:
equals()(javadoc) must define an equality relation (it must bereflexive,symmetric, andtransitive). In addition, it must beconsistent(if the objects are not modified, then it must keep returning the same value). Furthermore,o.equals(null)must always return false.hashCode()(javadoc) must also beconsis 阅读全文
posted @ 2013-12-08 03:07 Step-BY-Step 阅读(971) 评论(0) 推荐(0) 编辑