View Javadoc
1   package org.oxerr.viagogo.model.response.inventory;
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 SplitType extends Resource {
9   
10  	private static final long serialVersionUID = 2023021301L;
11  
12  	/**
13  	 * The type of split.
14  	 * Can be {@code Any}, {@code None}, {@code AvoidOne},
15  	 * {@code AvoidOneAndThree}, or {@code Pairs}.
16  	 */
17  	private String type;
18  
19  	/**
20  	 * The localised name of the type of split.
21  	 */
22  	private String name;
23  
24  	/**
25  	 * The localised description of the split.
26  	 */
27  	private String description;
28  
29  	public String getType() {
30  		return type;
31  	}
32  
33  	public void setType(String type) {
34  		this.type = type;
35  	}
36  
37  	public String getName() {
38  		return name;
39  	}
40  
41  	public void setName(String name) {
42  		this.name = name;
43  	}
44  
45  	public String getDescription() {
46  		return description;
47  	}
48  
49  	public void setDescription(String description) {
50  		this.description = description;
51  	}
52  
53  	@Override
54  	public int hashCode() {
55  		return HashCodeBuilder.reflectionHashCode(this);
56  	}
57  
58  	@Override
59  	public boolean equals(Object obj) {
60  		if (obj == null) {
61  			return false;
62  		}
63  		if (obj == this) {
64  			return true;
65  		}
66  		if (obj.getClass() != getClass()) {
67  			return false;
68  		}
69  		SplitType rhs = (SplitType) obj;
70  		return EqualsBuilder.reflectionEquals(this, rhs);
71  	}
72  
73  }