Builder design pattern for Housing class.
This commit is contained in:
parent
8d36387ef0
commit
36d31c8e6f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user