Clover icon

Coverage Report

  1. Project Clover database Thu Nov 28 2024 11:45:30 GMT
  2. Package uk.ac.ebi.picr.model

File UPEntry.java

 

Coverage histogram

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

Code metrics

30
60
20
1
308
199
37
0.62
3
20
1.85

Classes

Class Line # Actions
UPEntry 23 60 37
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 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   
 
37  0 toggle public UPEntry()
38    {
39    }
40   
 
41  0 toggle 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    * Gets the CRC64 value for this UPEntry.
56    *
57    * @return CRC64
58    */
 
59  0 toggle public java.lang.String getCRC64()
60    {
61  0 return CRC64;
62    }
63   
64    /**
65    * Sets the CRC64 value for this UPEntry.
66    *
67    * @param CRC64
68    */
 
69  0 toggle public void setCRC64(java.lang.String CRC64)
70    {
71  0 this.CRC64 = CRC64;
72    }
73   
74    /**
75    * Gets the UPI value for this UPEntry.
76    *
77    * @return UPI
78    */
 
79  0 toggle public java.lang.String getUPI()
80    {
81  0 return UPI;
82    }
83   
84    /**
85    * Sets the UPI value for this UPEntry.
86    *
87    * @param UPI
88    */
 
89  0 toggle public void setUPI(java.lang.String UPI)
90    {
91  0 this.UPI = UPI;
92    }
93   
94    /**
95    * Gets the identicalCrossReferences value for this UPEntry.
96    *
97    * @return identicalCrossReferences
98    */
 
99  0 toggle public uk.ac.ebi.picr.model.CrossReference[] getIdenticalCrossReferences()
100    {
101  0 return identicalCrossReferences;
102    }
103   
104    /**
105    * Sets the identicalCrossReferences value for this UPEntry.
106    *
107    * @param identicalCrossReferences
108    */
 
109  0 toggle public void setIdenticalCrossReferences(
110    uk.ac.ebi.picr.model.CrossReference[] identicalCrossReferences)
111    {
112  0 this.identicalCrossReferences = identicalCrossReferences;
113    }
114   
 
115  0 toggle public uk.ac.ebi.picr.model.CrossReference getIdenticalCrossReferences(
116    int i)
117    {
118  0 return this.identicalCrossReferences[i];
119    }
120   
 
121  0 toggle public void setIdenticalCrossReferences(int i,
122    uk.ac.ebi.picr.model.CrossReference _value)
123    {
124  0 this.identicalCrossReferences[i] = _value;
125    }
126   
127    /**
128    * Gets the logicalCrossReferences value for this UPEntry.
129    *
130    * @return logicalCrossReferences
131    */
 
132  0 toggle public uk.ac.ebi.picr.model.CrossReference[] getLogicalCrossReferences()
133    {
134  0 return logicalCrossReferences;
135    }
136   
137    /**
138    * Sets the logicalCrossReferences value for this UPEntry.
139    *
140    * @param logicalCrossReferences
141    */
 
142  0 toggle public void setLogicalCrossReferences(
143    uk.ac.ebi.picr.model.CrossReference[] logicalCrossReferences)
144    {
145  0 this.logicalCrossReferences = logicalCrossReferences;
146    }
147   
 
148  0 toggle public uk.ac.ebi.picr.model.CrossReference getLogicalCrossReferences(
149    int i)
150    {
151  0 return this.logicalCrossReferences[i];
152    }
153   
 
154  0 toggle public void setLogicalCrossReferences(int i,
155    uk.ac.ebi.picr.model.CrossReference _value)
156    {
157  0 this.logicalCrossReferences[i] = _value;
158    }
159   
160    /**
161    * Gets the sequence value for this UPEntry.
162    *
163    * @return sequence
164    */
 
165  0 toggle public java.lang.String getSequence()
166    {
167  0 return sequence;
168    }
169   
170    /**
171    * Sets the sequence value for this UPEntry.
172    *
173    * @param sequence
174    */
 
175  0 toggle public void setSequence(java.lang.String sequence)
176    {
177  0 this.sequence = sequence;
178    }
179   
180    /**
181    * Gets the timestamp value for this UPEntry.
182    *
183    * @return timestamp
184    */
 
185  0 toggle public java.util.Calendar getTimestamp()
186    {
187  0 return timestamp;
188    }
189   
190    /**
191    * Sets the timestamp value for this UPEntry.
192    *
193    * @param timestamp
194    */
 
195  0 toggle public void setTimestamp(java.util.Calendar timestamp)
196    {
197  0 this.timestamp = timestamp;
198    }
199   
200    private java.lang.Object __equalsCalc = null;
201   
 
202  0 toggle @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   
 
253  0 toggle @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    }