1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package vamsas.objects.simple; |
22 |
|
|
|
|
| 0% |
Uncovered Elements: 121 (121) |
Complexity: 41 |
Complexity Density: 0.63 |
|
23 |
|
public class Result implements java.io.Serializable |
24 |
|
{ |
25 |
|
private boolean broken; |
26 |
|
|
27 |
|
private boolean failed; |
28 |
|
|
29 |
|
private boolean finished; |
30 |
|
|
31 |
|
private boolean invalid; |
32 |
|
|
33 |
|
private boolean jobFailed; |
34 |
|
|
35 |
|
private boolean queued; |
36 |
|
|
37 |
|
private boolean running; |
38 |
|
|
39 |
|
private boolean serverError; |
40 |
|
|
41 |
|
private int state; |
42 |
|
|
43 |
|
private java.lang.String status; |
44 |
|
|
45 |
|
private boolean suspended; |
46 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
47 |
0 |
public Result()... |
48 |
|
{ |
49 |
|
} |
50 |
|
|
|
|
| 0% |
Uncovered Elements: 11 (11) |
Complexity: 1 |
Complexity Density: 0.09 |
|
51 |
0 |
public Result(boolean broken, boolean failed, boolean finished,... |
52 |
|
boolean invalid, boolean jobFailed, boolean queued, |
53 |
|
boolean running, boolean serverError, int state, |
54 |
|
java.lang.String status, boolean suspended) |
55 |
|
{ |
56 |
0 |
this.broken = broken; |
57 |
0 |
this.failed = failed; |
58 |
0 |
this.finished = finished; |
59 |
0 |
this.invalid = invalid; |
60 |
0 |
this.jobFailed = jobFailed; |
61 |
0 |
this.queued = queued; |
62 |
0 |
this.running = running; |
63 |
0 |
this.serverError = serverError; |
64 |
0 |
this.state = state; |
65 |
0 |
this.status = status; |
66 |
0 |
this.suspended = suspended; |
67 |
|
} |
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
@return |
73 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
74 |
0 |
public boolean isBroken()... |
75 |
|
{ |
76 |
0 |
return broken; |
77 |
|
} |
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
@param |
83 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
84 |
0 |
public void setBroken(boolean broken)... |
85 |
|
{ |
86 |
0 |
this.broken = broken; |
87 |
|
} |
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
@return |
93 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
94 |
0 |
public boolean isFailed()... |
95 |
|
{ |
96 |
0 |
return failed; |
97 |
|
} |
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
|
102 |
|
@param |
103 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
104 |
0 |
public void setFailed(boolean failed)... |
105 |
|
{ |
106 |
0 |
this.failed = failed; |
107 |
|
} |
108 |
|
|
109 |
|
|
110 |
|
|
111 |
|
|
112 |
|
@return |
113 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
114 |
0 |
public boolean isFinished()... |
115 |
|
{ |
116 |
0 |
return finished; |
117 |
|
} |
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
|
@param |
123 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
124 |
0 |
public void setFinished(boolean finished)... |
125 |
|
{ |
126 |
0 |
this.finished = finished; |
127 |
|
} |
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
|
132 |
|
@return |
133 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
134 |
0 |
public boolean isInvalid()... |
135 |
|
{ |
136 |
0 |
return invalid; |
137 |
|
} |
138 |
|
|
139 |
|
|
140 |
|
|
141 |
|
|
142 |
|
@param |
143 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
144 |
0 |
public void setInvalid(boolean invalid)... |
145 |
|
{ |
146 |
0 |
this.invalid = invalid; |
147 |
|
} |
148 |
|
|
149 |
|
|
150 |
|
|
151 |
|
|
152 |
|
@return |
153 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
154 |
0 |
public boolean isJobFailed()... |
155 |
|
{ |
156 |
0 |
return jobFailed; |
157 |
|
} |
158 |
|
|
159 |
|
|
160 |
|
|
161 |
|
|
162 |
|
@param |
163 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
164 |
0 |
public void setJobFailed(boolean jobFailed)... |
165 |
|
{ |
166 |
0 |
this.jobFailed = jobFailed; |
167 |
|
} |
168 |
|
|
169 |
|
|
170 |
|
|
171 |
|
|
172 |
|
@return |
173 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
174 |
0 |
public boolean isQueued()... |
175 |
|
{ |
176 |
0 |
return queued; |
177 |
|
} |
178 |
|
|
179 |
|
|
180 |
|
|
181 |
|
|
182 |
|
@param |
183 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
184 |
0 |
public void setQueued(boolean queued)... |
185 |
|
{ |
186 |
0 |
this.queued = queued; |
187 |
|
} |
188 |
|
|
189 |
|
|
190 |
|
|
191 |
|
|
192 |
|
@return |
193 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
194 |
0 |
public boolean isRunning()... |
195 |
|
{ |
196 |
0 |
return running; |
197 |
|
} |
198 |
|
|
199 |
|
|
200 |
|
|
201 |
|
|
202 |
|
@param |
203 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
204 |
0 |
public void setRunning(boolean running)... |
205 |
|
{ |
206 |
0 |
this.running = running; |
207 |
|
} |
208 |
|
|
209 |
|
|
210 |
|
|
211 |
|
|
212 |
|
@return |
213 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
214 |
0 |
public boolean isServerError()... |
215 |
|
{ |
216 |
0 |
return serverError; |
217 |
|
} |
218 |
|
|
219 |
|
|
220 |
|
|
221 |
|
|
222 |
|
@param |
223 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
224 |
0 |
public void setServerError(boolean serverError)... |
225 |
|
{ |
226 |
0 |
this.serverError = serverError; |
227 |
|
} |
228 |
|
|
229 |
|
|
230 |
|
|
231 |
|
|
232 |
|
@return |
233 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
234 |
0 |
public int getState()... |
235 |
|
{ |
236 |
0 |
return state; |
237 |
|
} |
238 |
|
|
239 |
|
|
240 |
|
|
241 |
|
|
242 |
|
@param |
243 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
244 |
0 |
public void setState(int state)... |
245 |
|
{ |
246 |
0 |
this.state = state; |
247 |
|
} |
248 |
|
|
249 |
|
|
250 |
|
|
251 |
|
|
252 |
|
@return |
253 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
254 |
0 |
public java.lang.String getStatus()... |
255 |
|
{ |
256 |
0 |
return status; |
257 |
|
} |
258 |
|
|
259 |
|
|
260 |
|
|
261 |
|
|
262 |
|
@param |
263 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
264 |
0 |
public void setStatus(java.lang.String status)... |
265 |
|
{ |
266 |
0 |
this.status = status; |
267 |
|
} |
268 |
|
|
269 |
|
|
270 |
|
|
271 |
|
|
272 |
|
@return |
273 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
274 |
0 |
public boolean isSuspended()... |
275 |
|
{ |
276 |
0 |
return suspended; |
277 |
|
} |
278 |
|
|
279 |
|
|
280 |
|
|
281 |
|
|
282 |
|
@param |
283 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
284 |
0 |
public void setSuspended(boolean suspended)... |
285 |
|
{ |
286 |
0 |
this.suspended = suspended; |
287 |
|
} |
288 |
|
|
289 |
|
private java.lang.Object __equalsCalc = null; |
290 |
|
|
|
|
| 0% |
Uncovered Elements: 22 (22) |
Complexity: 5 |
Complexity Density: 0.36 |
|
291 |
0 |
@Override... |
292 |
|
public synchronized boolean equals(java.lang.Object obj) |
293 |
|
{ |
294 |
0 |
if (obj == null) |
295 |
|
{ |
296 |
0 |
return false; |
297 |
|
} |
298 |
0 |
if (!(obj instanceof Result)) |
299 |
|
{ |
300 |
0 |
return false; |
301 |
|
} |
302 |
0 |
Result other = (Result) obj; |
303 |
0 |
if (this == obj) |
304 |
|
{ |
305 |
0 |
return true; |
306 |
|
} |
307 |
0 |
if (__equalsCalc != null) |
308 |
|
{ |
309 |
0 |
return (__equalsCalc == obj); |
310 |
|
} |
311 |
0 |
__equalsCalc = obj; |
312 |
0 |
boolean _equals; |
313 |
0 |
_equals = true && this.broken == other.isBroken() |
314 |
|
&& this.failed == other.isFailed() |
315 |
|
&& this.finished == other.isFinished() |
316 |
|
&& this.invalid == other.isInvalid() |
317 |
|
&& this.jobFailed == other.isJobFailed() |
318 |
|
&& this.queued == other.isQueued() |
319 |
|
&& this.running == other.isRunning() |
320 |
|
&& this.serverError == other.isServerError() |
321 |
|
&& this.state == other.getState() |
322 |
|
&& ((this.status == null && other.getStatus() == null) |
323 |
|
|| (this.status != null |
324 |
|
&& this.status.equals(other.getStatus()))) |
325 |
|
&& this.suspended == other.isSuspended(); |
326 |
0 |
__equalsCalc = null; |
327 |
0 |
return _equals; |
328 |
|
} |
329 |
|
|
330 |
|
private boolean __hashCodeCalc = false; |
331 |
|
|
|
|
| 0% |
Uncovered Elements: 40 (40) |
Complexity: 12 |
Complexity Density: 0.67 |
|
332 |
0 |
@Override... |
333 |
|
public synchronized int hashCode() |
334 |
|
{ |
335 |
0 |
if (__hashCodeCalc) |
336 |
|
{ |
337 |
0 |
return 0; |
338 |
|
} |
339 |
0 |
__hashCodeCalc = true; |
340 |
0 |
int _hashCode = 1; |
341 |
0 |
_hashCode += (isBroken() ? Boolean.TRUE : Boolean.FALSE).hashCode(); |
342 |
0 |
_hashCode += (isFailed() ? Boolean.TRUE : Boolean.FALSE).hashCode(); |
343 |
0 |
_hashCode += (isFinished() ? Boolean.TRUE : Boolean.FALSE).hashCode(); |
344 |
0 |
_hashCode += (isInvalid() ? Boolean.TRUE : Boolean.FALSE).hashCode(); |
345 |
0 |
_hashCode += (isJobFailed() ? Boolean.TRUE : Boolean.FALSE).hashCode(); |
346 |
0 |
_hashCode += (isQueued() ? Boolean.TRUE : Boolean.FALSE).hashCode(); |
347 |
0 |
_hashCode += (isRunning() ? Boolean.TRUE : Boolean.FALSE).hashCode(); |
348 |
0 |
_hashCode += (isServerError() ? Boolean.TRUE : Boolean.FALSE) |
349 |
|
.hashCode(); |
350 |
0 |
_hashCode += getState(); |
351 |
0 |
if (getStatus() != null) |
352 |
|
{ |
353 |
0 |
_hashCode += getStatus().hashCode(); |
354 |
|
} |
355 |
0 |
_hashCode += (isSuspended() ? Boolean.TRUE : Boolean.FALSE).hashCode(); |
356 |
0 |
__hashCodeCalc = false; |
357 |
0 |
return _hashCode; |
358 |
|
} |
359 |
|
|
360 |
|
} |