Clover icon

Coverage Report

  1. Project Clover database Mon Nov 11 2024 15:05:32 GMT
  2. Package vamsas.objects.simple

File MsaResult.java

 

Coverage histogram

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

Code metrics

12
25
6
1
117
67
12
0.48
4.17
6
2

Classes

Class Line # Actions
MsaResult 23 25 12
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 vamsas.objects.simple;
22   
 
23    public class MsaResult extends vamsas.objects.simple.Result
24    implements java.io.Serializable
25    {
26    private vamsas.objects.simple.Alignment msa;
27   
28    private java.lang.Object __equalsCalc = null;
29   
30    private boolean __hashCodeCalc = false;
31   
 
32  0 toggle public MsaResult()
33    {
34    }
35   
 
36  0 toggle public MsaResult(vamsas.objects.simple.Alignment msa)
37    {
38  0 this.msa = msa;
39    }
40   
41    /**
42    * Gets the msa value for this MsaResult.
43    *
44    * @return msa
45    */
 
46  0 toggle public vamsas.objects.simple.Alignment getMsa()
47    {
48  0 return msa;
49    }
50   
51    /**
52    * Sets the msa value for this MsaResult.
53    *
54    * @param msa
55    */
 
56  0 toggle public void setMsa(vamsas.objects.simple.Alignment msa)
57    {
58  0 this.msa = msa;
59    }
60   
 
61  0 toggle @Override
62    public synchronized boolean equals(java.lang.Object obj)
63    {
64  0 if (obj == null)
65    {
66  0 return false;
67    }
68  0 if (!(obj instanceof MsaResult))
69    {
70  0 return false;
71    }
72   
73  0 MsaResult other = (MsaResult) obj;
74   
75  0 if (this == obj)
76    {
77  0 return true;
78    }
79   
80  0 if (__equalsCalc != null)
81    {
82  0 return (__equalsCalc == obj);
83    }
84   
85  0 __equalsCalc = obj;
86   
87  0 boolean _equals;
88  0 _equals = super.equals(obj) && (((this.msa == null)
89    && (other.getMsa() == null))
90    || ((this.msa != null) && this.msa.equals(other.getMsa())));
91  0 __equalsCalc = null;
92   
93  0 return _equals;
94    }
95   
 
96  0 toggle @Override
97    public synchronized int hashCode()
98    {
99  0 if (__hashCodeCalc)
100    {
101  0 return 0;
102    }
103   
104  0 __hashCodeCalc = true;
105   
106  0 int _hashCode = super.hashCode();
107   
108  0 if (getMsa() != null)
109    {
110  0 _hashCode += getMsa().hashCode();
111    }
112   
113  0 __hashCodeCalc = false;
114   
115  0 return _hashCode;
116    }
117    }