Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to make eclipse generate hashCode and equals with HashCodeBuilder and EqualsBuilder

Tags:

java

eclipse

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?

like image 320
daveb Avatar asked Nov 11 '08 15:11

daveb


1 Answers

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.

like image 187
toolkit Avatar answered Sep 29 '22 18:09

toolkit