>sorry, but I don\'t understand why the resultant 
>hashCode should not an even
>number. My understanding of a hashCode funktion is, 
>that it should generate
>homogeneous values.

Yes, but the default hashCode function generates even numbers. So in order to recieve 
more balance when you mix your objects with objects using the default hashCode, your 
hashCodes should be uneven.

If you don\'t intend to mix, your hash codes should be evenly distributed.

Personally, I think this is a \"bug\" or at least an undesired feature in Java. The 
method \"hashCode()\" should naturally return evenly distributed numbers, both even 
and uneven.

/O

--------------------
[EMAIL PROTECTED]
0733 - 99 99 17

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to