Clover icon

Coverage Report

  1. Project Clover database Mon Nov 11 2024 15:14:12 GMT
  2. Package uk.ac.ebi.picr.model

File CrossReference.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart0.png
60% of files have more coverage

Code metrics

28
64
22
1
355
207
36
0.56
2.91
22
1.64

Classes

Class Line # Actions
CrossReference 23 64 36
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    /*
2    * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3    * Copyright (C) $$Year-Rel$$ The Jalview Authors
4    *
5    * This file is part of Jalview.
6    *
7    * Jalview is free software: you can redistribute it and/or
8    * modify it under the terms of the GNU General Public License
9    * as published by the Free Software Foundation, either version 3
10    * of the License, or (at your option) any later version.
11    *
12    * Jalview is distributed in the hope that it will be useful, but
13    * WITHOUT ANY WARRANTY; without even the implied warranty
14    * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15    * PURPOSE. See the GNU General Public License for more details.
16    *
17    * You should have received a copy of the GNU General Public License
18    * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19    * The Jalview Authors are detailed in the 'AUTHORS' file.
20    */
21    package uk.ac.ebi.picr.model;
22   
 
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   
 
43  0 toggle public CrossReference()
44    {
45    }
46   
 
47  0 toggle 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    * Gets the accession value for this CrossReference.
67    *
68    * @return accession
69    */
 
70  0 toggle public java.lang.String getAccession()
71    {
72  0 return accession;
73    }
74   
75    /**
76    * Sets the accession value for this CrossReference.
77    *
78    * @param accession
79    */
 
80  0 toggle public void setAccession(java.lang.String accession)
81    {
82  0 this.accession = accession;
83    }
84   
85    /**
86    * Gets the accessionVersion value for this CrossReference.
87    *
88    * @return accessionVersion
89    */
 
90  0 toggle public java.lang.String getAccessionVersion()
91    {
92  0 return accessionVersion;
93    }
94   
95    /**
96    * Sets the accessionVersion value for this CrossReference.
97    *
98    * @param accessionVersion
99    */
 
100  0 toggle public void setAccessionVersion(java.lang.String accessionVersion)
101    {
102  0 this.accessionVersion = accessionVersion;
103    }
104   
105    /**
106    * Gets the databaseDescription value for this CrossReference.
107    *
108    * @return databaseDescription
109    */
 
110  0 toggle public java.lang.String getDatabaseDescription()
111    {
112  0 return databaseDescription;
113    }
114   
115    /**
116    * Sets the databaseDescription value for this CrossReference.
117    *
118    * @param databaseDescription
119    */
 
120  0 toggle public void setDatabaseDescription(java.lang.String databaseDescription)
121    {
122  0 this.databaseDescription = databaseDescription;
123    }
124   
125    /**
126    * Gets the databaseName value for this CrossReference.
127    *
128    * @return databaseName
129    */
 
130  0 toggle public java.lang.String getDatabaseName()
131    {
132  0 return databaseName;
133    }
134   
135    /**
136    * Sets the databaseName value for this CrossReference.
137    *
138    * @param databaseName
139    */
 
140  0 toggle public void setDatabaseName(java.lang.String databaseName)
141    {
142  0 this.databaseName = databaseName;
143    }
144   
145    /**
146    * Gets the dateAdded value for this CrossReference.
147    *
148    * @return dateAdded
149    */
 
150  0 toggle public java.util.Calendar getDateAdded()
151    {
152  0 return dateAdded;
153    }
154   
155    /**
156    * Sets the dateAdded value for this CrossReference.
157    *
158    * @param dateAdded
159    */
 
160  0 toggle public void setDateAdded(java.util.Calendar dateAdded)
161    {
162  0 this.dateAdded = dateAdded;
163    }
164   
165    /**
166    * Gets the dateDeleted value for this CrossReference.
167    *
168    * @return dateDeleted
169    */
 
170  0 toggle public java.util.Calendar getDateDeleted()
171    {
172  0 return dateDeleted;
173    }
174   
175    /**
176    * Sets the dateDeleted value for this CrossReference.
177    *
178    * @param dateDeleted
179    */
 
180  0 toggle public void setDateDeleted(java.util.Calendar dateDeleted)
181    {
182  0 this.dateDeleted = dateDeleted;
183    }
184   
185    /**
186    * Gets the deleted value for this CrossReference.
187    *
188    * @return deleted
189    */
 
190  0 toggle public boolean isDeleted()
191    {
192  0 return deleted;
193    }
194   
195    /**
196    * Sets the deleted value for this CrossReference.
197    *
198    * @param deleted
199    */
 
200  0 toggle public void setDeleted(boolean deleted)
201    {
202  0 this.deleted = deleted;
203    }
204   
205    /**
206    * Gets the gi value for this CrossReference.
207    *
208    * @return gi
209    */
 
210  0 toggle public java.lang.String getGi()
211    {
212  0 return gi;
213    }
214   
215    /**
216    * Sets the gi value for this CrossReference.
217    *
218    * @param gi
219    */
 
220  0 toggle public void setGi(java.lang.String gi)
221    {
222  0 this.gi = gi;
223    }
224   
225    /**
226    * Gets the taxonId value for this CrossReference.
227    *
228    * @return taxonId
229    */
 
230  0 toggle public java.lang.String getTaxonId()
231    {
232  0 return taxonId;
233    }
234   
235    /**
236    * Sets the taxonId value for this CrossReference.
237    *
238    * @param taxonId
239    */
 
240  0 toggle public void setTaxonId(java.lang.String taxonId)
241    {
242  0 this.taxonId = taxonId;
243    }
244   
245    private java.lang.Object __equalsCalc = null;
246   
 
247  0 toggle @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    * hashCode designed to ensure that if two instances satisfy o1.equals(o2)
307    * then they have the same hashcode.
308    */
 
309  0 toggle @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    }