KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am overriding the hashCode and equals method of an object. I am using EqualsBuilder from the Apache Commons library for overriding equals. Since I am using Java 7, I was planning to use the built-in hash method in the Objects class instead of the Apache Commons HashCodeBuilder . Is there anything wrong with this approach? Is there any reason to prefer one over the other?
Tags (comma-separated)
Save Edits
Cancel