How do we decide on the best implementation of hashCode()
method for a collection (assuming that equals method has been overridden correctly) ?
Just a quick note for completing other more detailed answer (in term of code):
If I consider the question how-do-i-create-a-hash-table-in-java and especially the jGuru FAQ entry, I believe some other criteria upon which a hash code could be judged are: