How do we decide on the best implementation of hashCode() method for a collection (assuming that equals method has been overridden correctly) ?
hashCode()
I prefer using utility methods fromm Google Collections lib from class Objects that helps me to keep my code clean. Very often equals and hashcode methods are made from IDE's template, so their are not clean to read.
equals
hashcode