Builder design pattern for Person class.

This commit is contained in:
Paweł Dyda 2022-10-25 19:42:38 +02:00
parent 8a7b1b19c1
commit 8d36387ef0

View File

@ -2,12 +2,14 @@ package pl.amu.edu.demo.data;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.experimental.FieldDefaults;
import java.time.LocalDate;
@AllArgsConstructor
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@FieldDefaults(level = AccessLevel.PUBLIC, makeFinal = true)
@Builder
public class Person {
String displayName;
String firstName;