-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathIdentityAddress.java
More file actions
57 lines (46 loc) · 1.41 KB
/
Copy pathIdentityAddress.java
File metadata and controls
57 lines (46 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package co.dapi.types;
import java.util.Optional;
public class IdentityAddress {
private final String flat;
private final String building;
private final String full;
private final String area;
private final String poBox;
private final String city;
private final String state;
private final String country;
public IdentityAddress(String flat, String building, String full, String area, String poBox, String city, String state, String country) {
this.flat = flat;
this.building = building;
this.full = full;
this.area = area;
this.poBox = poBox;
this.city = city;
this.state = state;
this.country = country;
}
public Optional<String> getFlat() {
return Optional.ofNullable(flat);
}
public Optional<String> getBuilding() {
return Optional.ofNullable(building);
}
public Optional<String> getFull() {
return Optional.ofNullable(full);
}
public Optional<String> getArea() {
return Optional.ofNullable(area);
}
public Optional<String> getPoBox() {
return Optional.ofNullable(poBox);
}
public Optional<String> getCity() {
return Optional.ofNullable(city);
}
public Optional<String> getState() {
return Optional.ofNullable(state);
}
public Optional<String> getCountry() {
return Optional.ofNullable(country);
}
}