1 | public class MyInterfaceImpl implements MyInterface {↵ | | 1 | public class ServerImpl implements Server {↵
|
2 | private String key1;↵ | | 2 | private Long id;↵
|
3 | private String key2;↵ | | 3 | private String serverType;↵
|
4 | private String name;↵ | | 4 | private Address address;↵
|
|
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 getServerType() {↵
|
12 | return key2;↵ | | 12 | return serverType;↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public void setKey2(String key2) {↵ | | 14 | public void setServerType(String serverType) {↵
|
15 | this.key2 = key2;↵ | | 15 | this.↵
|
16 | }↵ | | |
|
|
17 | public String getName↵ | | 16 | serverType = serverType;↵
|
| | | 17 | }↵
|
|
18 | () {↵ | | 18 | public Address getAddress() {↵
|
19 | return name;↵ | | 19 | return address;↵
|
20 | }↵ | | 20 | }↵
|
|
21 | public void setName(String name) {↵ | | 21 | public void setAddress(Address address) {↵
|
22 | this.name = name;↵ | | 22 | this.address = address;↵
|
23 | | | 23 |
|