1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package uk.ac.ebi.picr.model; |
22 |
|
|
|
|
| 0% |
Uncovered Elements: 110 (110) |
Complexity: 37 |
Complexity Density: 0.62 |
|
23 |
|
public class UPEntry implements java.io.Serializable |
24 |
|
{ |
25 |
|
private java.lang.String CRC64; |
26 |
|
|
27 |
|
private java.lang.String UPI; |
28 |
|
|
29 |
|
private uk.ac.ebi.picr.model.CrossReference[] identicalCrossReferences; |
30 |
|
|
31 |
|
private uk.ac.ebi.picr.model.CrossReference[] logicalCrossReferences; |
32 |
|
|
33 |
|
private java.lang.String sequence; |
34 |
|
|
35 |
|
private java.util.Calendar timestamp; |
36 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
37 |
0 |
public UPEntry()... |
38 |
|
{ |
39 |
|
} |
40 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
41 |
0 |
public UPEntry(java.lang.String CRC64, java.lang.String UPI,... |
42 |
|
uk.ac.ebi.picr.model.CrossReference[] identicalCrossReferences, |
43 |
|
uk.ac.ebi.picr.model.CrossReference[] logicalCrossReferences, |
44 |
|
java.lang.String sequence, java.util.Calendar timestamp) |
45 |
|
{ |
46 |
0 |
this.CRC64 = CRC64; |
47 |
0 |
this.UPI = UPI; |
48 |
0 |
this.identicalCrossReferences = identicalCrossReferences; |
49 |
0 |
this.logicalCrossReferences = logicalCrossReferences; |
50 |
0 |
this.sequence = sequence; |
51 |
0 |
this.timestamp = timestamp; |
52 |
|
} |
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
@return |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0 |
public java.lang.String getCRC64()... |
60 |
|
{ |
61 |
0 |
return CRC64; |
62 |
|
} |
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
@param |
68 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
0 |
public void setCRC64(java.lang.String CRC64)... |
70 |
|
{ |
71 |
0 |
this.CRC64 = CRC64; |
72 |
|
} |
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
@return |
78 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
79 |
0 |
public java.lang.String getUPI()... |
80 |
|
{ |
81 |
0 |
return UPI; |
82 |
|
} |
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
@param |
88 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
89 |
0 |
public void setUPI(java.lang.String UPI)... |
90 |
|
{ |
91 |
0 |
this.UPI = UPI; |
92 |
|
} |
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
@return |
98 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
99 |
0 |
public uk.ac.ebi.picr.model.CrossReference[] getIdenticalCrossReferences()... |
100 |
|
{ |
101 |
0 |
return identicalCrossReferences; |
102 |
|
} |
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
@param |
108 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
109 |
0 |
public void setIdenticalCrossReferences(... |
110 |
|
uk.ac.ebi.picr.model.CrossReference[] identicalCrossReferences) |
111 |
|
{ |
112 |
0 |
this.identicalCrossReferences = identicalCrossReferences; |
113 |
|
} |
114 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
115 |
0 |
public uk.ac.ebi.picr.model.CrossReference getIdenticalCrossReferences(... |
116 |
|
int i) |
117 |
|
{ |
118 |
0 |
return this.identicalCrossReferences[i]; |
119 |
|
} |
120 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
121 |
0 |
public void setIdenticalCrossReferences(int i,... |
122 |
|
uk.ac.ebi.picr.model.CrossReference _value) |
123 |
|
{ |
124 |
0 |
this.identicalCrossReferences[i] = _value; |
125 |
|
} |
126 |
|
|
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
@return |
131 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
132 |
0 |
public uk.ac.ebi.picr.model.CrossReference[] getLogicalCrossReferences()... |
133 |
|
{ |
134 |
0 |
return logicalCrossReferences; |
135 |
|
} |
136 |
|
|
137 |
|
|
138 |
|
|
139 |
|
|
140 |
|
@param |
141 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
142 |
0 |
public void setLogicalCrossReferences(... |
143 |
|
uk.ac.ebi.picr.model.CrossReference[] logicalCrossReferences) |
144 |
|
{ |
145 |
0 |
this.logicalCrossReferences = logicalCrossReferences; |
146 |
|
} |
147 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
148 |
0 |
public uk.ac.ebi.picr.model.CrossReference getLogicalCrossReferences(... |
149 |
|
int i) |
150 |
|
{ |
151 |
0 |
return this.logicalCrossReferences[i]; |
152 |
|
} |
153 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
154 |
0 |
public void setLogicalCrossReferences(int i,... |
155 |
|
uk.ac.ebi.picr.model.CrossReference _value) |
156 |
|
{ |
157 |
0 |
this.logicalCrossReferences[i] = _value; |
158 |
|
} |
159 |
|
|
160 |
|
|
161 |
|
|
162 |
|
|
163 |
|
@return |
164 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
165 |
0 |
public java.lang.String getSequence()... |
166 |
|
{ |
167 |
0 |
return sequence; |
168 |
|
} |
169 |
|
|
170 |
|
|
171 |
|
|
172 |
|
|
173 |
|
@param |
174 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
175 |
0 |
public void setSequence(java.lang.String sequence)... |
176 |
|
{ |
177 |
0 |
this.sequence = sequence; |
178 |
|
} |
179 |
|
|
180 |
|
|
181 |
|
|
182 |
|
|
183 |
|
@return |
184 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
185 |
0 |
public java.util.Calendar getTimestamp()... |
186 |
|
{ |
187 |
0 |
return timestamp; |
188 |
|
} |
189 |
|
|
190 |
|
|
191 |
|
|
192 |
|
|
193 |
|
@param |
194 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
195 |
0 |
public void setTimestamp(java.util.Calendar timestamp)... |
196 |
|
{ |
197 |
0 |
this.timestamp = timestamp; |
198 |
|
} |
199 |
|
|
200 |
|
private java.lang.Object __equalsCalc = null; |
201 |
|
|
|
|
| 0% |
Uncovered Elements: 22 (22) |
Complexity: 5 |
Complexity Density: 0.36 |
|
202 |
0 |
@Override... |
203 |
|
public synchronized boolean equals(java.lang.Object obj) |
204 |
|
{ |
205 |
0 |
if (obj == null) |
206 |
|
{ |
207 |
0 |
return false; |
208 |
|
} |
209 |
0 |
if (!(obj instanceof UPEntry)) |
210 |
|
{ |
211 |
0 |
return false; |
212 |
|
} |
213 |
0 |
UPEntry other = (UPEntry) obj; |
214 |
0 |
if (this == obj) |
215 |
|
{ |
216 |
0 |
return true; |
217 |
|
} |
218 |
0 |
if (__equalsCalc != null) |
219 |
|
{ |
220 |
0 |
return (__equalsCalc == obj); |
221 |
|
} |
222 |
0 |
__equalsCalc = obj; |
223 |
0 |
boolean _equals; |
224 |
0 |
_equals = true && ((this.CRC64 == null && other.getCRC64() == null) |
225 |
|
|| (this.CRC64 != null && this.CRC64.equals(other.getCRC64()))) |
226 |
|
&& ((this.UPI == null && other.getUPI() == null) |
227 |
|
|| (this.UPI != null |
228 |
|
&& this.UPI.equals(other.getUPI()))) |
229 |
|
&& ((this.identicalCrossReferences == null |
230 |
|
&& other.getIdenticalCrossReferences() == null) |
231 |
|
|| (this.identicalCrossReferences != null |
232 |
|
&& java.util.Arrays.equals( |
233 |
|
this.identicalCrossReferences, |
234 |
|
other.getIdenticalCrossReferences()))) |
235 |
|
&& ((this.logicalCrossReferences == null |
236 |
|
&& other.getLogicalCrossReferences() == null) |
237 |
|
|| (this.logicalCrossReferences != null |
238 |
|
&& java.util.Arrays.equals( |
239 |
|
this.logicalCrossReferences, |
240 |
|
other.getLogicalCrossReferences()))) |
241 |
|
&& ((this.sequence == null && other.getSequence() == null) |
242 |
|
|| (this.sequence != null |
243 |
|
&& this.sequence.equals(other.getSequence()))) |
244 |
|
&& ((this.timestamp == null && other.getTimestamp() == null) |
245 |
|
|| (this.timestamp != null && this.timestamp |
246 |
|
.equals(other.getTimestamp()))); |
247 |
0 |
__equalsCalc = null; |
248 |
0 |
return _equals; |
249 |
|
} |
250 |
|
|
251 |
|
private boolean __hashCodeCalc = false; |
252 |
|
|
|
|
| 0% |
Uncovered Elements: 46 (46) |
Complexity: 14 |
Complexity Density: 0.58 |
|
253 |
0 |
@Override... |
254 |
|
public synchronized int hashCode() |
255 |
|
{ |
256 |
0 |
if (__hashCodeCalc) |
257 |
|
{ |
258 |
0 |
return 0; |
259 |
|
} |
260 |
0 |
__hashCodeCalc = true; |
261 |
0 |
int _hashCode = 1; |
262 |
0 |
if (getCRC64() != null) |
263 |
|
{ |
264 |
0 |
_hashCode += getCRC64().hashCode(); |
265 |
|
} |
266 |
0 |
if (getUPI() != null) |
267 |
|
{ |
268 |
0 |
_hashCode += getUPI().hashCode(); |
269 |
|
} |
270 |
0 |
if (getIdenticalCrossReferences() != null) |
271 |
|
{ |
272 |
0 |
for (int i = 0; i < java.lang.reflect.Array |
273 |
|
.getLength(getIdenticalCrossReferences()); i++) |
274 |
|
{ |
275 |
0 |
java.lang.Object obj = java.lang.reflect.Array |
276 |
|
.get(getIdenticalCrossReferences(), i); |
277 |
0 |
if (obj != null && !obj.getClass().isArray()) |
278 |
|
{ |
279 |
0 |
_hashCode += obj.hashCode(); |
280 |
|
} |
281 |
|
} |
282 |
|
} |
283 |
0 |
if (getLogicalCrossReferences() != null) |
284 |
|
{ |
285 |
0 |
for (int i = 0; i < java.lang.reflect.Array |
286 |
|
.getLength(getLogicalCrossReferences()); i++) |
287 |
|
{ |
288 |
0 |
java.lang.Object obj = java.lang.reflect.Array |
289 |
|
.get(getLogicalCrossReferences(), i); |
290 |
0 |
if (obj != null && !obj.getClass().isArray()) |
291 |
|
{ |
292 |
0 |
_hashCode += obj.hashCode(); |
293 |
|
} |
294 |
|
} |
295 |
|
} |
296 |
0 |
if (getSequence() != null) |
297 |
|
{ |
298 |
0 |
_hashCode += getSequence().hashCode(); |
299 |
|
} |
300 |
0 |
if (getTimestamp() != null) |
301 |
|
{ |
302 |
0 |
_hashCode += getTimestamp().hashCode(); |
303 |
|
} |
304 |
0 |
__hashCodeCalc = false; |
305 |
0 |
return _hashCode; |
306 |
|
} |
307 |
|
|
308 |
|
} |