update author list in license for (JAL-826)
[jalview.git] / src / vamsas / objects / simple / JpredResult.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3  * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
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 of the License, or (at your option) any later version.
10  * 
11  * Jalview is distributed in the hope that it will be useful, but 
12  * WITHOUT ANY WARRANTY; without even the implied warranty 
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14  * PURPOSE.  See the GNU General Public License for more details.
15  * 
16  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 package vamsas.objects.simple;
19
20 public class JpredResult extends vamsas.objects.simple.Result implements
21         java.io.Serializable
22 {
23   private java.lang.String aligfile;
24
25   private java.lang.String predfile;
26
27   public JpredResult()
28   {
29   }
30
31   public JpredResult(java.lang.String aligfile, java.lang.String predfile)
32   {
33     this.aligfile = aligfile;
34     this.predfile = predfile;
35   }
36
37   /**
38    * Gets the aligfile value for this JpredResult.
39    * 
40    * @return aligfile
41    */
42   public java.lang.String getAligfile()
43   {
44     return aligfile;
45   }
46
47   /**
48    * Sets the aligfile value for this JpredResult.
49    * 
50    * @param aligfile
51    */
52   public void setAligfile(java.lang.String aligfile)
53   {
54     this.aligfile = aligfile;
55   }
56
57   /**
58    * Gets the predfile value for this JpredResult.
59    * 
60    * @return predfile
61    */
62   public java.lang.String getPredfile()
63   {
64     return predfile;
65   }
66
67   /**
68    * Sets the predfile value for this JpredResult.
69    * 
70    * @param predfile
71    */
72   public void setPredfile(java.lang.String predfile)
73   {
74     this.predfile = predfile;
75   }
76
77   private java.lang.Object __equalsCalc = null;
78
79   public synchronized boolean equals(java.lang.Object obj)
80   {
81     if (!(obj instanceof JpredResult))
82     {
83       return false;
84     }
85     JpredResult other = (JpredResult) obj;
86     if (obj == null)
87     {
88       return false;
89     }
90     if (this == obj)
91     {
92       return true;
93     }
94     if (__equalsCalc != null)
95     {
96       return (__equalsCalc == obj);
97     }
98     __equalsCalc = obj;
99     boolean _equals;
100     _equals = super.equals(obj)
101             && ((this.aligfile == null && other.getAligfile() == null) || (this.aligfile != null && this.aligfile
102                     .equals(other.getAligfile())))
103             && ((this.predfile == null && other.getPredfile() == null) || (this.predfile != null && this.predfile
104                     .equals(other.getPredfile())));
105     __equalsCalc = null;
106     return _equals;
107   }
108
109   private boolean __hashCodeCalc = false;
110
111   public synchronized int hashCode()
112   {
113     if (__hashCodeCalc)
114     {
115       return 0;
116     }
117     __hashCodeCalc = true;
118     int _hashCode = super.hashCode();
119     if (getAligfile() != null)
120     {
121       _hashCode += getAligfile().hashCode();
122     }
123     if (getPredfile() != null)
124     {
125       _hashCode += getPredfile().hashCode();
126     }
127     __hashCodeCalc = false;
128     return _hashCode;
129   }
130
131 }