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 <[EMAIL PROTECTED]> wrote: > From: Tore Halset <[EMAIL PROTECTED]> > 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: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]