for IntelliJ IDEA

Compatible with:  IntelliJ IDEA Android Studio
24 774
Adds a Builder action to the Generate menu (Alt+Insert) which generates an inner builder class as described in Effective Java

Download plugin

Recent change notes

30.04.2015 - 1.1.2 - Added more options to use JSR-305/Findbugs @Nonnull annotations and generate Javadoc.
13.06.2014 - 1.1.1 - Bugfix for final fields in copy builder, thanks to neilg.
27.02.2014 - 1.1.0 - Added checkboxes to customize the builder (new builder method, copy constructor and 'with' notation).
16.02.2014 - 1.0.8 - Don't include private superclass fields and allow fields with no access modifier.
01.02.2014 - 1.0.7 - Ignore tinylog and JBoss logging fields.
14.12.2013 - 1.0.6 - Rewrites existing Builder classes, field ordering in chooser is now superclass-first.
06.12.2013 - 1.0.5 - Fixed bug with primitive types.
06.12.2013 - 1.0.4 - Fixed generated field order.
03.12.2013 - 1.0.3 - Now includes parent class fields in the chooser.
29.11.2013 - 1.0.1 - Small fixup release.
22.11.2013 - 1.0.0 - First release, based on an old codebase.

General usage instructions

Use Shift+Alt+B or Alt+Insert and select Builder. Choose the fields to be included and press OK.
Great plugin! Had to do some changes to make the syntax to match my project and that was really easy, just love it!
Nice job
I've used a good number of the other plugins. In my opinion, this one is one of the best.
One amendment. I'd prefer to have the name of the newBuilder() method configurable.
it would be nice to have non static newBuilder() function on object itself which will be just delegate to static newBuilder(this)
Could you please add setter name starter with 'setCamelCase' also. The best solution can be ability edit generated code in file templates of IDE.
I love it!
Awesome plugin - nice to finally see some standard builder generation. I just wish that it could also refactor all uses of the constructor, like the build in intelliJ "replace constructor with builder" does.
Would be awesome if there was the option of generating the setters for even final variables. I like named variables ^-^
Please  sign in  to leave a comment.