directory-dev mailing list archives

On 5/19/10 9:34 PM, Felix Knecht wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Sorry, I was not clear:
>
> The method equals() is missing wheras the method hashCode() is
> implemented. Either both should be implemented (overridden) or none.
>
> So again, is it on purpose that the overriding equals method is missing?
>
AFAIK, it's far worse to have equals() implemented and not hashcode()
than the opposite. However, it should be a good thing to *always* have a
equals() method and an haschcode() method together.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com