How can I replace the getters in the following example using Lombok?
import lombok.Builder;
public class MyClass {
private MyBasicDataClass basicData = MyBasicDataClass.builder().myInt(10).myBool(true).build();
public Integer getMyInt() {
return basicData.myInt;
}
public Boolean getMyBool() {
return basicData.myBool;
}
@Builder
static class MyBasicDataClass {
private Integer myInt;
private Boolean myBool;
}
}
The basicData property cannot be replaced.