且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否可以使eclipse使用HashCodeBuilder和EqualsBuilder生成hashCode和equals

更新时间:2023-09-28 23:32:34

看看 Commons4E



它还没有一段时间更新,但是我不知道它需要改变多少? p>

更新:刚刚检查对应于3.4.1,它的工作正常。


The default generated hashCode and equals implementations are ugly at best.

Is it possible to make eclipse generate ones from HashCodeBuilder and EqualsBuilder, and perhaps even a toString with ToStringBuilder?

Take a look at Commons4E

It hasn't been updated in a while, but then I don't guess it needs to change much?

Update: Just checked against 3.4.1 and it works fine.