-
Notifications
You must be signed in to change notification settings - Fork 332
Expand file tree
/
Copy pathConfigurations.java
More file actions
141 lines (126 loc) · 3.65 KB
/
Configurations.java
File metadata and controls
141 lines (126 loc) · 3.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
package datadog.trace.api.civisibility.config;
import datadog.trace.util.HashingUtils;
import java.util.Map;
import java.util.Objects;
public final class Configurations {
private final String osPlatform;
private final String osArchitecture;
private final String osVersion;
private final String runtimeName;
private final String runtimeVersion;
private final String runtimeVendor;
private final String runtimeArchitecture;
private final String testBundle;
private final Map<String, String> custom;
public Configurations(
String osPlatform,
String osArchitecture,
String osVersion,
String runtimeName,
String runtimeVersion,
String runtimeVendor,
String runtimeArchitecture,
String testBundle,
Map<String, String> custom) {
this.osPlatform = osPlatform;
this.osArchitecture = osArchitecture;
this.osVersion = osVersion;
this.runtimeName = runtimeName;
this.runtimeVersion = runtimeVersion;
this.runtimeVendor = runtimeVendor;
this.runtimeArchitecture = runtimeArchitecture;
this.testBundle = testBundle;
this.custom = custom;
}
public String getOsPlatform() {
return osPlatform;
}
public String getOsArchitecture() {
return osArchitecture;
}
public String getOsVersion() {
return osVersion;
}
public String getRuntimeName() {
return runtimeName;
}
public String getRuntimeVersion() {
return runtimeVersion;
}
public String getRuntimeVendor() {
return runtimeVendor;
}
public String getRuntimeArchitecture() {
return runtimeArchitecture;
}
public String getTestBundle() {
return testBundle;
}
public Map<String, String> getCustom() {
return custom;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Configurations that = (Configurations) o;
return Objects.equals(osPlatform, that.osPlatform)
&& Objects.equals(osArchitecture, that.osArchitecture)
&& Objects.equals(osVersion, that.osVersion)
&& Objects.equals(runtimeName, that.runtimeName)
&& Objects.equals(runtimeVersion, that.runtimeVersion)
&& Objects.equals(runtimeVendor, that.runtimeVendor)
&& Objects.equals(runtimeArchitecture, that.runtimeArchitecture)
&& Objects.equals(testBundle, that.testBundle)
&& Objects.equals(custom, that.custom);
}
@Override
public int hashCode() {
int hash = 0;
hash = HashingUtils.addToHash(hash, osPlatform);
hash = HashingUtils.addToHash(hash, osArchitecture);
hash = HashingUtils.addToHash(hash, osVersion);
hash = HashingUtils.addToHash(hash, runtimeName);
hash = HashingUtils.addToHash(hash, runtimeVersion);
hash = HashingUtils.addToHash(hash, runtimeVendor);
hash = HashingUtils.addToHash(hash, runtimeArchitecture);
hash = HashingUtils.addToHash(hash, testBundle);
hash = HashingUtils.addToHash(hash, custom);
return hash;
}
@Override
public String toString() {
return "Configurations{"
+ "osPlatform='"
+ osPlatform
+ '\''
+ ", osArchitecture='"
+ osArchitecture
+ '\''
+ ", osVersion='"
+ osVersion
+ '\''
+ ", runtimeName='"
+ runtimeName
+ '\''
+ ", runtimeVersion='"
+ runtimeVersion
+ '\''
+ ", runtimeVendor='"
+ runtimeVendor
+ '\''
+ ", runtimeArchitecture='"
+ runtimeArchitecture
+ '\''
+ ", testBundle='"
+ testBundle
+ '\''
+ ", custom="
+ custom
+ '}';
}
}