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.AccessLevel;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
import lombok.experimental.FieldDefaults;
|
import lombok.experimental.FieldDefaults;
|
||||||
|
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
||||||
@FieldDefaults(level = AccessLevel.PUBLIC, makeFinal = true)
|
@FieldDefaults(level = AccessLevel.PUBLIC, makeFinal = true)
|
||||||
|
@Builder
|
||||||
public class Housing {
|
public class Housing {
|
||||||
Address address;
|
Address address;
|
||||||
boolean isApartment;
|
boolean isApartment;
|
||||||
|
Double area;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user