What Is The Use Of AllArgsConstructor?
What Is The Use Of AllArgsConstructor? Creating a static factory method using @AllArgsConstructor If we would like to create instance using a static factory method, staticName attribute of @AllArgsConstructor allows us to generates a private all-args constructors and an additional static factory method that wraps around the private constructor is generated. What is Java AllArgsConstructor?