directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fel...@apache.org>
Subject Re: Equals and HashCode
Date Sun, 16 May 2010 21:37:16 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Definitively not a false positive. Implementing the equals() method does
> not works if we don't implement hashcade() at the same time.

IMO we can use for most HashCodeBuilder [1] and appending the same
fields used in the equals method.
Do you think this is a way to go or does this end up in performance issues?


[1]
http://commons.apache.org/lang/api-release/org/apache/commons/lang/builder/HashCodeBuilder.html

Felix
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvwZYsACgkQ2lZVCB08qHEhMQCgwEfA9rcjzUIJw1SXqv6kUEiO
QzsAn1+4At1CrowV7INrfV5gm8n8FD7m
=Pmc3
-----END PGP SIGNATURE-----

Mime
View raw message