Skip to content

[REQ] Add builder() to data classes for easier creation #10841

@andyrozman

Description

@andyrozman

At the moment you have to create instance of object beforehand and then set parameters on it... Can you add Builder to classes (similar to what lombok has).

So instead of doing it like this:
Class1 test = new Class1();
test.setClass2(new Class2().id("test").something('hshj"));

you could use sometjing like this

Class1 test = Class1.builder()
.class2(Class2.builder().id("test").build())
.build();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions