You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While documentation does exist that explains hashCode(), that documentation is lacking and doesn't provide many (any?) implementation examples. It would nice for users to...
see a hashCode() implementation example.
be provided with a quick list of best practices.
be provided with a quick overview of how hash() works.
The implementation example could be as simple as just calling into hash() several times and mixing the results:
What happened
While documentation does exist that explains hashCode(), that documentation is lacking and doesn't provide many (any?) implementation examples. It would nice for users to...
The implementation example could be as simple as just calling into hash() several times and mixing the results:
How to reproduce
Go ask a person unfamiliar with hashCode()/equals() to read the documentation and attempt an implementation for some custom object.
The text was updated successfully, but these errors were encountered: