1 | public class MyInterfaceImpl implements MyInterface {↵ | | 1 | public class AddressImpl implements Address {↵
|
2 | private String key1;↵ | | 2 | private Long id;↵
|
3 | private String key2;↵ | | 3 | private String addressType;↵
|
4 | private String name;↵ | | 4 | private Server server;↵
|
|
5 | public String getKey1() {↵ | | 5 | public Long getId() {↵
|
6 | return key1;↵ | | 6 | return id;↵
|
7 | }↵ | | 7 | }↵
|
|
8 | public void setKey1(String key1) {↵ | | 8 | public void setId(Long id) {↵
|
9 | this.key1 = key1;↵ | | 9 | this.id = id;↵
|
10 | }↵ | | 10 | }↵
|
|
11 | public String getKey2() {↵ | | 11 | public String getAddressType() {↵
|
12 | return key2;↵ | | 12 | return addressType;↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public void setKey2(String key2) {↵ | | 14 | public void set↵
|
15 | this.key2 = key2↵ | | 15 | AddressType(String addressType) {↵
|
16 | ;↵ | | 16 | this.addressType = addressType;↵
|
17 | }↵ | | 17 | }↵
|
|
18 | public String getName() {↵ | | 18 | public Server getServer() {↵
|
19 | return name;↵ | | 19 | return server;↵
|
20 | }↵ | | 20 | }↵
|
|
21 | public void setName(String name) {↵ | | 21 | public void set↵
|
22 | this.name = name↵ | | 22 | Server(Server server) {↵
|
23 | ;↵ | | 23 | this.server = server;↵
|
24 | | | 24 |
|