1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.springframework.cloud.contract.maven.verifier;
18
19
20
21
22
23
24
25
26 public class BaseClassMapping {
27
28 private String contractPackageRegex;
29
30 private String baseClassFQN;
31
32 public String getContractPackageRegex() {
33 return this.contractPackageRegex;
34 }
35
36 public void setContractPackageRegex(String contractPackageRegex) {
37 this.contractPackageRegex = contractPackageRegex;
38 }
39
40 public String getBaseClassFQN() {
41 return this.baseClassFQN;
42 }
43
44 public void setBaseClassFQN(String baseClassFQN) {
45 this.baseClassFQN = baseClassFQN;
46 }
47
48 @Override
49 public boolean equals(Object o) {
50 if (this == o) {
51 return true;
52 }
53 if (o == null || getClass() != o.getClass()) {
54 return false;
55 }
56 BaseClassMapping that = (BaseClassMapping) o;
57 if (this.contractPackageRegex != null ? !this.contractPackageRegex.equals(that.contractPackageRegex)
58 : that.contractPackageRegex != null) {
59 return false;
60 }
61 return this.baseClassFQN != null ? this.baseClassFQN.equals(that.baseClassFQN) : that.baseClassFQN == null;
62
63 }
64
65 @Override
66 public int hashCode() {
67 int result = this.contractPackageRegex != null ? this.contractPackageRegex.hashCode() : 0;
68 result = 31 * result + (this.baseClassFQN != null ? this.baseClassFQN.hashCode() : 0);
69 return result;
70 }
71
72 @Override
73 public String toString() {
74 return "BaseClassMapping{" + "contractPackageRegex='" + this.contractPackageRegex + '\'' + ", baseClassFQN='"
75 + this.baseClassFQN + '\'' + '}';
76 }
77
78 }