David Dossot - 2007-04-13

Logged In: YES
user_id=751436
Originator: NO

I suggest you compute the hashcode and toString value at construction time instead of lazily as shown in the code.

Rationale: immutable object are intrinsically threadsafe, but by having some attributes calculated in a thread-unsafe manner (you can easily have several threads calculating the hashcode or the toString at the same time), you somewhat break this expectation.