97000e4976b910e1efdb43d124d9b5ea4b35c4a5
[jalview.git] / src / vamsas / objects / simple / MsaResult.java
1 /**
2  * MsaResult.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
6  */
7
8 package vamsas.objects.simple;
9
10 public class MsaResult  extends vamsas.objects.simple.Result  implements java.io.Serializable {
11     private vamsas.objects.simple.Alignment msa;
12
13     public MsaResult() {
14     }
15
16     public MsaResult(
17            vamsas.objects.simple.Alignment msa) {
18            this.msa = msa;
19     }
20
21
22     /**
23      * Gets the msa value for this MsaResult.
24      * 
25      * @return msa
26      */
27     public vamsas.objects.simple.Alignment getMsa() {
28         return msa;
29     }
30
31
32     /**
33      * Sets the msa value for this MsaResult.
34      * 
35      * @param msa
36      */
37     public void setMsa(vamsas.objects.simple.Alignment msa) {
38         this.msa = msa;
39     }
40
41     private java.lang.Object __equalsCalc = null;
42     public synchronized boolean equals(java.lang.Object obj) {
43         if (!(obj instanceof MsaResult)) return false;
44         MsaResult other = (MsaResult) obj;
45         if (obj == null) return false;
46         if (this == obj) return true;
47         if (__equalsCalc != null) {
48             return (__equalsCalc == obj);
49         }
50         __equalsCalc = obj;
51         boolean _equals;
52         _equals = super.equals(obj) && 
53             ((this.msa==null && other.getMsa()==null) || 
54              (this.msa!=null &&
55               this.msa.equals(other.getMsa())));
56         __equalsCalc = null;
57         return _equals;
58     }
59
60     private boolean __hashCodeCalc = false;
61     public synchronized int hashCode() {
62         if (__hashCodeCalc) {
63             return 0;
64         }
65         __hashCodeCalc = true;
66         int _hashCode = super.hashCode();
67         if (getMsa() != null) {
68             _hashCode += getMsa().hashCode();
69         }
70         __hashCodeCalc = false;
71         return _hashCode;
72     }
73
74 }