c8327dd82348957d901a45c986b978723cbda4eb
[jalview.git] / src / vamsas / objects / simple / MsaResult.java
1 /**\r
2  * MsaResult.java\r
3  *\r
4  * This file was auto-generated from WSDL\r
5  * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.\r
6  */\r
7 \r
8 /*\r
9  * Jalview - A Sequence Alignment Editor and Viewer\r
10  * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
11  *\r
12  * This program is free software; you can redistribute it and/or\r
13  * modify it under the terms of the GNU General Public License\r
14  * as published by the Free Software Foundation; either version 2\r
15  * of the License, or (at your option) any later version.\r
16  *\r
17  * This program is distributed in the hope that it will be useful,\r
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
20  * GNU General Public License for more details.\r
21  *\r
22  * You should have received a copy of the GNU General Public License\r
23  * along with this program; if not, write to the Free Software\r
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
25  */\r
26 package vamsas.objects.simple;\r
27 \r
28 public class MsaResult\r
29     extends vamsas.objects.simple.Result implements java.io.Serializable\r
30 {\r
31   private vamsas.objects.simple.Alignment msa;\r
32   private java.lang.Object __equalsCalc = null;\r
33   private boolean __hashCodeCalc = false;\r
34 \r
35   public MsaResult()\r
36   {\r
37   }\r
38 \r
39   public MsaResult(vamsas.objects.simple.Alignment msa)\r
40   {\r
41     this.msa = msa;\r
42   }\r
43 \r
44   /**\r
45    * Gets the msa value for this MsaResult.\r
46    *\r
47    * @return msa\r
48    */\r
49   public vamsas.objects.simple.Alignment getMsa()\r
50   {\r
51     return msa;\r
52   }\r
53 \r
54   /**\r
55    * Sets the msa value for this MsaResult.\r
56    *\r
57    * @param msa\r
58    */\r
59   public void setMsa(vamsas.objects.simple.Alignment msa)\r
60   {\r
61     this.msa = msa;\r
62   }\r
63 \r
64   public synchronized boolean equals(java.lang.Object obj)\r
65   {\r
66     if (! (obj instanceof MsaResult))\r
67     {\r
68       return false;\r
69     }\r
70 \r
71     MsaResult other = (MsaResult) obj;\r
72 \r
73     if (obj == null)\r
74     {\r
75       return false;\r
76     }\r
77 \r
78     if (this == obj)\r
79     {\r
80       return true;\r
81     }\r
82 \r
83     if (__equalsCalc != null)\r
84     {\r
85       return (__equalsCalc == obj);\r
86     }\r
87 \r
88     __equalsCalc = obj;\r
89 \r
90     boolean _equals;\r
91     _equals = super.equals(obj) &&\r
92         ( ( (this.msa == null) && (other.getMsa() == null)) ||\r
93          ( (this.msa != null) && this.msa.equals(other.getMsa())));\r
94     __equalsCalc = null;\r
95 \r
96     return _equals;\r
97   }\r
98 \r
99   public synchronized int hashCode()\r
100   {\r
101     if (__hashCodeCalc)\r
102     {\r
103       return 0;\r
104     }\r
105 \r
106     __hashCodeCalc = true;\r
107 \r
108     int _hashCode = super.hashCode();\r
109 \r
110     if (getMsa() != null)\r
111     {\r
112       _hashCode += getMsa().hashCode();\r
113     }\r
114 \r
115     __hashCodeCalc = false;\r
116 \r
117     return _hashCode;\r
118   }\r
119 }\r