Eclipse removes another boilerplate gripe

September 7, 2006

After getting halfway through the third hashCode method in the SPECTRa search tool I said to my rubber duck:  “This is rubbish, why can’t Eclipse generate my hashCode and equals methods?”.  “Perhaps it can” came the reply “why don’t you just google for it?”

Consequently googled and found – simply right click in the class, go to source, Generate hashCode and equals methods. Not the prettiest code in the world, but then boilerplate doesn’t have to be.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: