Formatting
[jalview.git] / src / vamsas / objects / simple / JpredResult.java
1 /**
2  * JpredResult.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 JpredResult
11     extends vamsas.objects.simple.Result implements java.io.Serializable
12 {
13   private java.lang.String aligfile;
14   private java.lang.String predfile;
15
16   public JpredResult()
17   {
18   }
19
20   public JpredResult(
21       java.lang.String aligfile,
22       java.lang.String predfile)
23   {
24     this.aligfile = aligfile;
25     this.predfile = predfile;
26   }
27
28   /**
29    * Gets the aligfile value for this JpredResult.
30    *
31    * @return aligfile
32    */
33   public java.lang.String getAligfile()
34   {
35     return aligfile;
36   }
37
38   /**
39    * Sets the aligfile value for this JpredResult.
40    *
41    * @param aligfile
42    */
43   public void setAligfile(java.lang.String aligfile)
44   {
45     this.aligfile = aligfile;
46   }
47
48   /**
49    * Gets the predfile value for this JpredResult.
50    *
51    * @return predfile
52    */
53   public java.lang.String getPredfile()
54   {
55     return predfile;
56   }
57
58   /**
59    * Sets the predfile value for this JpredResult.
60    *
61    * @param predfile
62    */
63   public void setPredfile(java.lang.String predfile)
64   {
65     this.predfile = predfile;
66   }
67
68   private java.lang.Object __equalsCalc = null;
69   public synchronized boolean equals(java.lang.Object obj)
70   {
71     if (! (obj instanceof JpredResult))
72     {
73       return false;
74     }
75     JpredResult other = (JpredResult) obj;
76     if (obj == null)
77     {
78       return false;
79     }
80     if (this == obj)
81     {
82       return true;
83     }
84     if (__equalsCalc != null)
85     {
86       return (__equalsCalc == obj);
87     }
88     __equalsCalc = obj;
89     boolean _equals;
90     _equals = super.equals(obj) &&
91         ( (this.aligfile == null && other.getAligfile() == null) ||
92          (this.aligfile != null &&
93           this.aligfile.equals(other.getAligfile()))) &&
94         ( (this.predfile == null && other.getPredfile() == null) ||
95          (this.predfile != null &&
96           this.predfile.equals(other.getPredfile())));
97     __equalsCalc = null;
98     return _equals;
99   }
100
101   private boolean __hashCodeCalc = false;
102   public synchronized int hashCode()
103   {
104     if (__hashCodeCalc)
105     {
106       return 0;
107     }
108     __hashCodeCalc = true;
109     int _hashCode = super.hashCode();
110     if (getAligfile() != null)
111     {
112       _hashCode += getAligfile().hashCode();
113     }
114     if (getPredfile() != null)
115     {
116       _hashCode += getPredfile().hashCode();
117     }
118     __hashCodeCalc = false;
119     return _hashCode;
120   }
121
122 }