Builder design pattern for Housing class.

This commit is contained in:
Paweł Dyda 2022-10-25 20:00:02 +02:00
parent 8d36387ef0
commit 36d31c8e6f

View File

@ -2,11 +2,14 @@ package pl.amu.edu.demo.data;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.experimental.FieldDefaults;
@AllArgsConstructor
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@FieldDefaults(level = AccessLevel.PUBLIC, makeFinal = true)
@Builder
public class Housing {
Address address;
boolean isApartment;
Double area;
}