Hello
I am using static factory method to create instances of class. Static factory method is using private all-args constructor. Is there any way to create private All-Args Constructor using lombok
public class X {
private String a;
private String b;
private String c;
private X(String a, String b, String c) {
this.a = a;
this.b = b;
this.c = c;
}
public static X getInstance(String a, String b, String c) {
return new X(a, b, c);
}
}
Query : Any Lombok annotation to create All-Args constructor with private modifier ?