1 | public class ServerImpl implements Server {↵ | | 1 | public class ParentInfoAssigned {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String serverType;↵ | | 3 | private ↵
|
4 | private Address address;↵ | | |
|
|
5 | public Long getId() {↵ | | |
|
6 | return id;↵ | | |
|
7 | }↵ | | |
|
|
8 | public void setId(Long id) {↵ | | |
|
9 | this.id = id;↵ | | |
|
10 | }↵ | | |
|
|
11 | public String getServerType↵ | | 4 | ParentAssigned owner;↵
|
| | | 5 | private String info;↵
|
|
| | | 6 | public ParentInfoAssigned() {↵
|
| | | 7 | }↵
|
|
| | | 8 | public ParentInfoAssigned(String info) {↵
|
| | | 9 | this.info = info;↵
|
| | | 10 | }↵
|
|
| | | 11 | public Long getId() {↵
|
| | | 12 | return id;↵
|
| | | 13 | }↵
|
|
12 | () {↵ | | 14 | public ParentAssigned getOwner() {↵
|
13 | return serverType;↵ | | 15 | return owner;↵
|
14 | }↵ | | 16 | }↵
|
|
15 | public void setServerType(String serverType) {↵ | | 17 | public void set↵
|
16 | this.serverType = serverType;↵ | | |
|
17 | }↵ | | |
|
|
18 | public Address getAddress↵ | | 18 | Owner(ParentAssigned owner) {↵
|
| | | 19 | this.owner = owner;↵
|
| | | 20 | }↵
|
|
19 | () {↵ | | 21 | public String getInfo() {↵
|
20 | return address;↵ | | 22 | return info;↵
|
21 | }↵ | | 23 | }↵
|
|
22 | public void setAddress(Address address) {↵ | | 24 | public void set↵
|
23 | this.address = address | | 25 | Info(String info) {↵
|
| | | 26 | this.info = info
|