File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/com/deepak/data/structures/Hashing Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,12 @@ This time it will be unique elements printed.
104104Complete implementation of this program is [ here] ( ../Hashing/HashCodeAndEquals.java )
105105
106106#### Important things to remember
107- * Always use same attributes of an object to generate hashCode() and equals() both.
108- * Whenever a.equals(b), then a.hashCode() must be same as b.hashCode().
109- * If you override one, then you should override the other.
110- * In case of ORM ensure you use getters and not field references.
107+ ```
108+ - Always use same attributes of an object to generate hashCode() and equals() both.
109+ - Whenever a.equals(b), then a.hashCode() must be same as b.hashCode().
110+ - If you override one, then you should override the other.
111+ - In case of ORM ensure you use getters and not field references.
112+ ```
111113
112114Here is a nice article about it,
113- [ HashCode and Equals] ( http://www.javaranch.com/journal/2002/10/equalhash.html )
115+ [ HashCode and Equals] ( http://www.javaranch.com/journal/2002/10/equalhash.html )
You can’t perform that action at this time.
0 commit comments