jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Smuts <asm...@yahoo.com>
Subject Re: CacheElement.hashCode
Date Wed, 01 Oct 2008 16:57:30 GMT
sorry, sent that accidentally.   . . .

But two unequal objects can return the same hashcode.  There is no problem with that.  The
hashcode will return the same for equal objects.  That's all that it needs to do to obey the
contract.

Aaron


--- On Tue, 9/30/08, Tore Halset <halset@pvv.ntnu.no> wrote:

> From: Tore Halset <halset@pvv.ntnu.no>
> Subject: CacheElement.hashCode
> To: "JCS Users List" <jcs-users@jakarta.apache.org>
> Date: Tuesday, September 30, 2008, 11:33 PM
> Hello.
> 
> I see that CacheElement implements hashCode, but not
> equals. Why break  
> this fundamental rule?
> 
>   - Tore.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jcs-users-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Mime
View raw message