DavidBurkett / Builderberg

IntelliJ IDEA plugin to generate inner builders with constraint validation
MIT License
3 stars 6 forks source link

Provide annotation to generate compareTo #2

Open DavidBurkett opened 6 years ago

DavidBurkett commented 6 years ago

Allow annotation of fields to include in comparison, as well as the ordering of the comparison and direction of comparison. Example:

@BuilderComparison(1, inverse)

would compare that field first by calling compareTo and then taking the inverse of the result.