How to customize hashCode() and equals() generated by Eclipse?

前端 未结 2 1078
死守一世寂寞
死守一世寂寞 2020-12-30 03:19

It is recommended and sometimes necessary, classes that represent values (value classes) to override hashCode(), equals() [and optionally

2条回答
  •  醉梦人生
    2020-12-30 03:29

    Posting my comment as an answer by request: Commonclipse, an Eclipse plugin that facilitates the use of Apache Commons, does what you want to do.

    Caveat: I have no recent experience with this plugin, which is why I originally posted as a comment, and not as an answer.

提交回复
热议问题