> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jonathan K. Weedon

> So, in real life a and b will fall into some range.  Let's
> say that a falls into the range [0-A], and b falls into
> the range [0-B].  Then our hashCode above will fall into
> a range:
>
>         [0-(A+B)]

Shouldn't that be [0 - max(A,B)]? (or more precisely, [0 - 1 << (1 + max of
their log2]))

(that doesn't invalidate all your good points)

--
Cedric

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to