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: 114 (114) |
Complexity: 36 |
Complexity Density: 0.56 |
|
23 |
|
public class CrossReference implements java.io.Serializable |
24 |
|
{ |
25 |
|
private java.lang.String accession; |
26 |
|
|
27 |
|
private java.lang.String accessionVersion; |
28 |
|
|
29 |
|
private java.lang.String databaseDescription; |
30 |
|
|
31 |
|
private java.lang.String databaseName; |
32 |
|
|
33 |
|
private java.util.Calendar dateAdded; |
34 |
|
|
35 |
|
private java.util.Calendar dateDeleted; |
36 |
|
|
37 |
|
private boolean deleted; |
38 |
|
|
39 |
|
private java.lang.String gi; |
40 |
|
|
41 |
|
private java.lang.String taxonId; |
42 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
43 |
0 |
public CrossReference()... |
44 |
|
{ |
45 |
|
} |
46 |
|
|
|
|
| 0% |
Uncovered Elements: 9 (9) |
Complexity: 1 |
Complexity Density: 0.11 |
|
47 |
0 |
public CrossReference(java.lang.String accession,... |
48 |
|
java.lang.String accessionVersion, |
49 |
|
java.lang.String databaseDescription, |
50 |
|
java.lang.String databaseName, java.util.Calendar dateAdded, |
51 |
|
java.util.Calendar dateDeleted, boolean deleted, |
52 |
|
java.lang.String gi, java.lang.String taxonId) |
53 |
|
{ |
54 |
0 |
this.accession = accession; |
55 |
0 |
this.accessionVersion = accessionVersion; |
56 |
0 |
this.databaseDescription = databaseDescription; |
57 |
0 |
this.databaseName = databaseName; |
58 |
0 |
this.dateAdded = dateAdded; |
59 |
0 |
this.dateDeleted = dateDeleted; |
60 |
0 |
this.deleted = deleted; |
61 |
0 |
this.gi = gi; |
62 |
0 |
this.taxonId = taxonId; |
63 |
|
} |
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
@return |
69 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
70 |
0 |
public java.lang.String getAccession()... |
71 |
|
{ |
72 |
0 |
return accession; |
73 |
|
} |
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
@param |
79 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
80 |
0 |
public void setAccession(java.lang.String accession)... |
81 |
|
{ |
82 |
0 |
this.accession = accession; |
83 |
|
} |
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
@return |
89 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
90 |
0 |
public java.lang.String getAccessionVersion()... |
91 |
|
{ |
92 |
0 |
return accessionVersion; |
93 |
|
} |
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
@param |
99 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
100 |
0 |
public void setAccessionVersion(java.lang.String accessionVersion)... |
101 |
|
{ |
102 |
0 |
this.accessionVersion = accessionVersion; |
103 |
|
} |
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
|
@return |
109 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
110 |
0 |
public java.lang.String getDatabaseDescription()... |
111 |
|
{ |
112 |
0 |
return databaseDescription; |
113 |
|
} |
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
@param |
119 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
120 |
0 |
public void setDatabaseDescription(java.lang.String databaseDescription)... |
121 |
|
{ |
122 |
0 |
this.databaseDescription = databaseDescription; |
123 |
|
} |
124 |
|
|
125 |
|
|
126 |
|
|
127 |
|
|
128 |
|
@return |
129 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
130 |
0 |
public java.lang.String getDatabaseName()... |
131 |
|
{ |
132 |
0 |
return databaseName; |
133 |
|
} |
134 |
|
|
135 |
|
|
136 |
|
|
137 |
|
|
138 |
|
@param |
139 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
140 |
0 |
public void setDatabaseName(java.lang.String databaseName)... |
141 |
|
{ |
142 |
0 |
this.databaseName = databaseName; |
143 |
|
} |
144 |
|
|
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
@return |
149 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
150 |
0 |
public java.util.Calendar getDateAdded()... |
151 |
|
{ |
152 |
0 |
return dateAdded; |
153 |
|
} |
154 |
|
|
155 |
|
|
156 |
|
|
157 |
|
|
158 |
|
@param |
159 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
160 |
0 |
public void setDateAdded(java.util.Calendar dateAdded)... |
161 |
|
{ |
162 |
0 |
this.dateAdded = dateAdded; |
163 |
|
} |
164 |
|
|
165 |
|
|
166 |
|
|
167 |
|
|
168 |
|
@return |
169 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
170 |
0 |
public java.util.Calendar getDateDeleted()... |
171 |
|
{ |
172 |
0 |
return dateDeleted; |
173 |
|
} |
174 |
|
|
175 |
|
|
176 |
|
|
177 |
|
|
178 |
|
@param |
179 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
180 |
0 |
public void setDateDeleted(java.util.Calendar dateDeleted)... |
181 |
|
{ |
182 |
0 |
this.dateDeleted = dateDeleted; |
183 |
|
} |
184 |
|
|
185 |
|
|
186 |
|
|
187 |
|
|
188 |
|
@return |
189 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
190 |
0 |
public boolean isDeleted()... |
191 |
|
{ |
192 |
0 |
return deleted; |
193 |
|
} |
194 |
|
|
195 |
|
|
196 |
|
|
197 |
|
|
198 |
|
@param |
199 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
200 |
0 |
public void setDeleted(boolean deleted)... |
201 |
|
{ |
202 |
0 |
this.deleted = deleted; |
203 |
|
} |
204 |
|
|
205 |
|
|
206 |
|
|
207 |
|
|
208 |
|
@return |
209 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
210 |
0 |
public java.lang.String getGi()... |
211 |
|
{ |
212 |
0 |
return gi; |
213 |
|
} |
214 |
|
|
215 |
|
|
216 |
|
|
217 |
|
|
218 |
|
@param |
219 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
220 |
0 |
public void setGi(java.lang.String gi)... |
221 |
|
{ |
222 |
0 |
this.gi = gi; |
223 |
|
} |
224 |
|
|
225 |
|
|
226 |
|
|
227 |
|
|
228 |
|
@return |
229 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
230 |
0 |
public java.lang.String getTaxonId()... |
231 |
|
{ |
232 |
0 |
return taxonId; |
233 |
|
} |
234 |
|
|
235 |
|
|
236 |
|
|
237 |
|
|
238 |
|
@param |
239 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
240 |
0 |
public void setTaxonId(java.lang.String taxonId)... |
241 |
|
{ |
242 |
0 |
this.taxonId = taxonId; |
243 |
|
} |
244 |
|
|
245 |
|
private java.lang.Object __equalsCalc = null; |
246 |
|
|
|
|
| 0% |
Uncovered Elements: 22 (22) |
Complexity: 5 |
Complexity Density: 0.36 |
|
247 |
0 |
@Override... |
248 |
|
public synchronized boolean equals(java.lang.Object obj) |
249 |
|
{ |
250 |
0 |
if (obj == null) |
251 |
|
{ |
252 |
0 |
return false; |
253 |
|
} |
254 |
0 |
if (!(obj instanceof CrossReference)) |
255 |
|
{ |
256 |
0 |
return false; |
257 |
|
} |
258 |
0 |
CrossReference other = (CrossReference) obj; |
259 |
0 |
if (this == obj) |
260 |
|
{ |
261 |
0 |
return true; |
262 |
|
} |
263 |
0 |
if (__equalsCalc != null) |
264 |
|
{ |
265 |
0 |
return (__equalsCalc == obj); |
266 |
|
} |
267 |
0 |
__equalsCalc = obj; |
268 |
0 |
boolean _equals; |
269 |
0 |
_equals = true |
270 |
|
&& ((this.accession == null && other.getAccession() == null) |
271 |
|
|| (this.accession != null |
272 |
|
&& this.accession.equals(other.getAccession()))) |
273 |
|
&& ((this.accessionVersion == null |
274 |
|
&& other.getAccessionVersion() == null) |
275 |
|
|| (this.accessionVersion != null |
276 |
|
&& this.accessionVersion |
277 |
|
.equals(other.getAccessionVersion()))) |
278 |
|
&& ((this.databaseDescription == null |
279 |
|
&& other.getDatabaseDescription() == null) |
280 |
|
|| (this.databaseDescription != null |
281 |
|
&& this.databaseDescription.equals( |
282 |
|
other.getDatabaseDescription()))) |
283 |
|
&& ((this.databaseName == null |
284 |
|
&& other.getDatabaseName() == null) |
285 |
|
|| (this.databaseName != null && this.databaseName |
286 |
|
.equals(other.getDatabaseName()))) |
287 |
|
&& ((this.dateAdded == null && other.getDateAdded() == null) |
288 |
|
|| (this.dateAdded != null |
289 |
|
&& this.dateAdded.equals(other.getDateAdded()))) |
290 |
|
&& ((this.dateDeleted == null && other.getDateDeleted() == null) |
291 |
|
|| (this.dateDeleted != null && this.dateDeleted |
292 |
|
.equals(other.getDateDeleted()))) |
293 |
|
&& this.deleted == other.isDeleted() |
294 |
|
&& ((this.gi == null && other.getGi() == null) |
295 |
|
|| (this.gi != null && this.gi.equals(other.getGi()))) |
296 |
|
&& ((this.taxonId == null && other.getTaxonId() == null) |
297 |
|
|| (this.taxonId != null |
298 |
|
&& this.taxonId.equals(other.getTaxonId()))); |
299 |
0 |
__equalsCalc = null; |
300 |
0 |
return _equals; |
301 |
|
} |
302 |
|
|
303 |
|
private boolean __hashCodeCalc = false; |
304 |
|
|
305 |
|
|
306 |
|
|
307 |
|
|
308 |
|
|
|
|
| 0% |
Uncovered Elements: 43 (43) |
Complexity: 11 |
Complexity Density: 0.48 |
|
309 |
0 |
@Override... |
310 |
|
public synchronized int hashCode() |
311 |
|
{ |
312 |
0 |
if (__hashCodeCalc) |
313 |
|
{ |
314 |
0 |
return 0; |
315 |
|
} |
316 |
0 |
__hashCodeCalc = true; |
317 |
0 |
int _hashCode = 1; |
318 |
0 |
if (getAccession() != null) |
319 |
|
{ |
320 |
0 |
_hashCode += getAccession().hashCode(); |
321 |
|
} |
322 |
0 |
if (getAccessionVersion() != null) |
323 |
|
{ |
324 |
0 |
_hashCode += getAccessionVersion().hashCode(); |
325 |
|
} |
326 |
0 |
if (getDatabaseDescription() != null) |
327 |
|
{ |
328 |
0 |
_hashCode += getDatabaseDescription().hashCode(); |
329 |
|
} |
330 |
0 |
if (getDatabaseName() != null) |
331 |
|
{ |
332 |
0 |
_hashCode += getDatabaseName().hashCode(); |
333 |
|
} |
334 |
0 |
if (getDateAdded() != null) |
335 |
|
{ |
336 |
0 |
_hashCode += getDateAdded().hashCode(); |
337 |
|
} |
338 |
0 |
if (getDateDeleted() != null) |
339 |
|
{ |
340 |
0 |
_hashCode += getDateDeleted().hashCode(); |
341 |
|
} |
342 |
0 |
_hashCode += (isDeleted() ? Boolean.TRUE : Boolean.FALSE).hashCode(); |
343 |
0 |
if (getGi() != null) |
344 |
|
{ |
345 |
0 |
_hashCode += getGi().hashCode(); |
346 |
|
} |
347 |
0 |
if (getTaxonId() != null) |
348 |
|
{ |
349 |
0 |
_hashCode += getTaxonId().hashCode(); |
350 |
|
} |
351 |
0 |
__hashCodeCalc = false; |
352 |
0 |
return _hashCode; |
353 |
|
} |
354 |
|
|
355 |
|
} |