1 | public class Item {↵ | | 1 | public class ServerImpl implements Server {
↵
|
2 | private Long id;↵ | | 2 | private Long id;
↵
|
3 | private String name;↵ | | 3 | private String serverType;
↵
|
4 | private String description;↵ | | 4 | private ↵
|
5 | ↵ | | 5 | Address address;↵
|
| | | 6 |
↵
|
6 | public String getDescription() {↵ | | 7 | public Long getId() {
↵
|
7 | return description;↵ | | 8 | return ↵
|
8 | }↵ | | 9 | id;↵
|
| | | 10 | }↵
|
| | | 11 |
↵
|
9 | public void setDescription(String description) {↵ | | 12 | public void setId(Long id) {
↵
|
10 | this.description = description;↵ | | 13 | this.↵
|
11 | }↵ | | 14 | id = id;↵
|
| | | 15 | }↵
|
| | | 16 |
↵
|
12 | public Long getId() {↵ | | 17 | public String getServerType() {
↵
|
13 | return id;↵ | | 18 | return ↵
|
14 | }↵ | | |
|
15 | public void setId(Long id↵ | | 19 | serverType;↵
|
| | | 20 | }↵
|
|
16 | ) {↵ | | 21 | public void setServerType(String serverType) {
↵
|
17 | this.id = id;↵ | | 22 | this.↵
|
18 | }↵ | | |
|
19 | public String getName↵ | | 23 | serverType = serverType;↵
|
| | | 24 | }↵
|
|
20 | () {↵ | | 25 | public Address getAddress() {
↵
|
21 | return name;↵ | | 26 | return ↵
|
22 | }↵ | | 27 | address;↵
|
| | | 28 | }↵
|
| | | 29 |
↵
|
23 | public void setName(String name) {↵ | | 30 | public void setAddress(Address address) {
↵
|
24 | this.name = name | | 31 | this.address = address
|