Categories


Authors:
m.jedynak
opensource software

Equals and HashCode Deluxe Generator

Products: IntelliJ IDEA, Android Studio

Vendor: Michal Jedynak

Email: m.jedynak [at] gmail.com

Website: https://github.com/mjedy...sHashCodeDeluxeGenerator

Bugtracker page

Description:

Generates equals() and hashCode() using Guava library or Objects class from Java 7. Usage:
  • ALT + INSERT -> equals() and hashCode() deluxe (inside Java Editor).
Downloads: 2826
Rating:
Participated in rating: 1
Version Since Build Until Build File/URL Size (Kb) Date Details
1.0.5. 107.105. . Download 64.58 2013-02-04 20:56:16 details
. .
5 updates are hidden show all updates

Recent change notes:

version 1.0.5
  • Added ability to choose between Java 7 and Guava
version 1.0.4
  • Added comparison with base class fo subclasses in equals method
version 1.0.3
  • Fixed compatibility issue with IDEA 12
version 1.0.2
  • Tested against IDEA 10.5
version 1.0.1
  • Changed plugin name as slash character ('/') caused a bug with download link on JetBrains site.

General usage instructions:

ALT + INSERT -> equals() and hashCode() deluxe (inside Java Editor)

Comments:

virgo47
Rated:
2012-11-08 11:56:14
Not bad and does what it should. However, the first dialog in the wizard should have select/unselect all in case one needs to base equals on a single id for instance. Also there is no customization in case you prefer something like: return this == obj || obj != null && getClass() == obj.getClass() && Objects.equal(getPrimaryKey(), ((ConfigData) obj).getPrimaryKey()); ...instead of typical ifs, braces, many lines, etc.
.