overriding default values when using lombok builder

Viewed 2553

I am using lombok's builder. To assign the default value to some variables I am trying to use

@Builder.Default

But the problem is that on using the above annotation, I am no longer able to initialize that value through builder as compiler says can not resolve method while trying to initialize the variable through builder.

So, essentially what I am looking for is a way to set default values and still be able to override when initiating through builder.

1 Answers
Related