1 | public class ServerImpl implements Server {
↵ | | 1 | public class A {↵
|
2 | private Long id;
↵ | | 2 | private Long id;↵
|
3 | private String serverType;
↵ | | 3 | private String name;↵
|
4 | private Address address;↵ | | 4 | private ↵
|
5 |
↵ | | 5 | E forward;↵
|
| | | 6 | ↵
|
| | | 7 | /**↵
|
| | | 8 | * Returns the id.↵
|
| | | 9 | * @return Long↵
|
| | | 10 | */↵
|
6 | public Long getId() {
↵ | | 11 | public Long getId() {↵
|
7 | return id;
↵ | | 12 | return id;↵
|
8 | }↵ | | 13 | }↵
|
9 |
↵ | | |
|
| | | 14 | ↵
|
| | | 15 | /**↵
|
| | | 16 | * Returns the name.↵
|
| | | 17 | * @return String↵
|
| | | 18 | */↵
|
| | | 19 | public String getName() {↵
|
| | | 20 | return name;↵
|
| | | 21 | }↵
|
| | | 22 | ↵
|
| | | 23 | /**↵
|
| | | 24 | * Sets the id.↵
|
| | | 25 | * @param id The id to set↵
|
| | | 26 | */↵
|
10 | public void setId(Long id) {
↵ | | 27 | public void setId(Long id) {↵
|
11 | this.id = id;
↵ | | 28 | this.id = id;↵
|
12 | }↵ | | 29 | }↵
|
|
13 | public String getServerType() {↵ | | |
|
14 | return serverType;↵ | | |
|
15 | }↵ | | |
|
|
16 | public void setServerType(String serverTyp↵ | | |
|
| | | 30 | ↵
|
| | | 31 | /**↵
|
| | | 32 | * Sets the name.↵
|
| | | 33 | * @param name The name to set↵
|
| | | 34 | */↵
|
17 | e) {
↵ | | 35 | public void setName(String name) {↵
|
18 | this.serverType = serverType;
↵ | | 36 | this.name = name;↵
|
19 | }↵ | | 37 | }↵
|
20 |
↵ | | |
|
| | | 38 | ↵
|
21 | public Address getAddress() {
↵ | | 39 | public E getForward() {↵
|
22 | return address;↵ | | 40 | return ↵
|
23 | }↵ | | |
|
24 |
↵ | | 41 | forward;↵
|
| | | 42 | }↵
|
|
25 | public void setAddress(Address address) {
↵ | | 43 | public void setForward(E e) {↵
|
26 | this.address = address;
↵ | | 44 | forward = e;↵
|
27 | | | 45 |
|