View Javadoc
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  	 * The two-letter ISO 3166 code for the country.
14  	 */
15  	private String code;
16  
17  	/**
18  	 * The name of the country.
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 (obj == null) {
46  			return false;
47  		}
48  		if (obj == this) {
49  			return true;
50  		}
51  		if (obj.getClass() != getClass()) {
52  			return false;
53  		}
54  		Country rhs = (Country) obj;
55  		return EqualsBuilder.reflectionEquals(this, rhs);
56  	}
57  
58  }