Skip to content

Option to create constructors (with all fields, or with required fields) #231

@monksy

Description

@monksy

At the moment it's a little messy with creating new instances of the POJOs with the builders. Could we get an option that would create an additional constructor to define the required fields?

Right now to create something of the following schema:

 Obj { name: asdf, age: 32; state:NC} 

You would have to invoke it by: (with builders enabled)

new Obj().withName("asdf").withAge(32).withState("NC")

Rather than [what I'm suggesting]

new Obj("asdf", 32, "NC")

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions