directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: Is (@override) equals() here missing?
Date Wed, 19 May 2010 19:53:20 GMT
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



Mime
View raw message