I'm trying to populate two fields in a class by using only one field in a Lombok builder.
e.g.
@Builder
public class Foo {
@NonNull
private final double bar1;
@NonNull
private final double bar2;
}
I want
Foo.builder().bar1(0.0).build();
to also set bar2 to the same value as bar1.
Thanks