Best implementation for hashCode method for a collection

后端 未结 20 3063
难免孤独
难免孤独 2020-11-22 01:39

How do we decide on the best implementation of hashCode() method for a collection (assuming that equals method has been overridden correctly) ?

20条回答
  •  被撕碎了的回忆
    2020-11-22 02:37

    It is better to use the functionality provided by Eclipse which does a pretty good job and you can put your efforts and energy in developing the business logic.

提交回复
热议问题