Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.
/ BuilderGenerator Public archive
forked from fred-o/BuilderBuilder

Automatically generate Builder classes instead of using complex constructors, all through the magic of maven.

Notifications You must be signed in to change notification settings

DonRobo/BuilderGenerator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BuilderGenerator

Automatically generate Builder classes that allow chaining instead of calling every single setter by itself, all through the magic of Maven.

MyDto dto = new MyDto();
dto.setA("a");
dto.setB(2);

MyOtherDto dto2 = new MyOtherDto();
dto2.setSomething(new Object());

dto.setDto(dto2);

list.add(dto);

becomes

list.add(
  MyDtoBuilder.aMyDtoBuilder()
    .withA("a")
    .withB(2)
    .withDto(
      MyOtherDtoBuilder.aMyOtherDtoBuilder()
      .withSomething(new Object())
      .build()
    )
    .build();
);

About

Automatically generate Builder classes instead of using complex constructors, all through the magic of maven.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%