What are ways to keep hashCode/equals consistent with the business definition of the class?

后端 未结 6 2081
萌比男神i
萌比男神i 2021-02-01 19:12

Object javadocs and Josh Bloch tell us a great deal about how hashCode/equals should be implemented, and good IDEs will handle fields of various types correctly. Some discussio

6条回答
提交回复
热议问题