mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-03 18:47:19 +00:00
19 lines
447 B
Java
19 lines
447 B
Java
import java.util.List;
|
|
|
|
public class SuperBuilderCustomizedWithSetterPrefix {
|
|
@lombok.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();
|
|
}
|
|
}
|