1 package org.oxerr.viagogo.model.response.catalog;
2
3 import org.apache.commons.lang3.builder.EqualsBuilder;
4 import org.apache.commons.lang3.builder.HashCodeBuilder;
5 import org.oxerr.viagogo.model.response.Resource;
6
7 @io.openapitools.jackson.dataformat.hal.annotation.Resource
8 public class Country extends Resource {
9
10 private static final long serialVersionUID = 2023021301L;
11
12
13
14
15 private String code;
16
17
18
19
20 private String name;
21
22 public String getCode() {
23 return code;
24 }
25
26 public void setCode(String code) {
27 this.code = code;
28 }
29
30 public String getName() {
31 return name;
32 }
33
34 public void setName(String name) {
35 this.name = name;
36 }
37
38 @Override
39 public int hashCode() {
40 return HashCodeBuilder.reflectionHashCode(this);
41 }
42
43 @Override
44 public boolean equals(Object obj) {
45 if (this == obj) {
46 return true;
47 }
48 if (!(obj instanceof Country)) {
49 return false;
50 }
51 Country rhs = (Country) obj;
52 return EqualsBuilder.reflectionEquals(this, rhs);
53 }
54
55 }