View Javadoc
1   package org.oxerr.seatgeek.client.model.response;
2   
3   import org.apache.commons.lang3.builder.EqualsBuilder;
4   import org.apache.commons.lang3.builder.HashCodeBuilder;
5   
6   public class SingleListingResponse extends Response {
7   
8   	private static final long serialVersionUID = 2023031501L;
9   
10  	private Listing listing;
11  
12  	public Listing getListing() {
13  		return listing;
14  	}
15  
16  	public void setListing(Listing listing) {
17  		this.listing = listing;
18  	}
19  
20  	@Override
21  	public int hashCode() {
22  		return HashCodeBuilder.reflectionHashCode(this);
23  	}
24  
25  	@Override
26  	public boolean equals(Object obj) {
27  		if (obj == null) {
28  			return false;
29  		}
30  		if (obj == this) {
31  			return true;
32  		}
33  		if (obj.getClass() != getClass()) {
34  			return false;
35  		}
36  		SingleListingResponse rhs = (SingleListingResponse) obj;
37  		return EqualsBuilder.reflectionEquals(this, rhs);
38  	}
39  
40  }