Plugin to build java objects automatically in Vscode or Intellij

Asked

Viewed 15 times

0

Imagine the following situation:

  • You have a Java class using lombok with @Builder
  • This class has attributes with types referring to another class
  • It is a class with many attributes

Is there a plugin that can build this class automatically without having to write in hand?

For example, generate this code below:

MinhaClasse.builder()
    .attrA(
        OutraClasse.builder()
            .attrC(1)
            .build()
        )
    .attrB("ABC")
    .build();

Something I create the above code based on the class I want.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.