1 package org.oxerr.viagogo.model.response;
2
3 import java.io.Serializable;
4
5 import org.apache.commons.lang3.builder.EqualsBuilder;
6 import org.apache.commons.lang3.builder.HashCodeBuilder;
7
8 import io.openapitools.jackson.dataformat.hal.HALLink;
9 import io.openapitools.jackson.dataformat.hal.annotation.Link;
10
11 @io.openapitools.jackson.dataformat.hal.annotation.Resource
12 public abstract class Resource implements Serializable {
13
14 private static final long serialVersionUID = 2023021301L;
15
16 @Link("self")
17 private HALLink selfLink;
18
19 public HALLink getSelfLink() {
20 return selfLink;
21 }
22
23 public void setSelfLink(HALLink selfLink) {
24 this.selfLink = selfLink;
25 }
26
27 @Override
28 public int hashCode() {
29 return HashCodeBuilder.reflectionHashCode(this);
30 }
31
32 @Override
33 public boolean equals(Object obj) {
34 if (this == obj) {
35 return true;
36 }
37 if (!(obj instanceof Resource)) {
38 return false;
39 }
40 Resource rhs = (Resource) obj;
41 return EqualsBuilder.reflectionEquals(this, rhs);
42 }
43
44 }