blob: be2cfc4a41cca56ac35027dbaef2d5c66b6ae5a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import java.util.List;
public class SuperBuilderCustomizedWithSetterPrefix {
@lombok.experimental.SuperBuilder(setterPrefix = "set")
public static class Parent {
public static abstract class ParentBuilder<C extends Parent, B extends ParentBuilder<C, B>> {
public B setField1(int field1) {
this.field1 = field1 + 1;
return self();
}
}
int field1;
}
public static void test() {
Parent x = Parent.builder().setField1(5).build();
}
}
|