JAL-1432 updated copyright notices
[jalview.git] / src / vamsas / objects / simple / JpredResult.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
3  * Copyright (C) 2014 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 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  * The Jalview Authors are detailed in the 'AUTHORS' file.
18  */
19 package vamsas.objects.simple;
20
21 public class JpredResult extends vamsas.objects.simple.Result implements
22         java.io.Serializable
23 {
24   private java.lang.String aligfile;
25
26   private java.lang.String predfile;
27
28   public JpredResult()
29   {
30   }
31
32   public JpredResult(java.lang.String aligfile, java.lang.String predfile)
33   {
34     this.aligfile = aligfile;
35     this.predfile = predfile;
36   }
37
38   /**
39    * Gets the aligfile value for this JpredResult.
40    * 
41    * @return aligfile
42    */
43   public java.lang.String getAligfile()
44   {
45     return aligfile;
46   }
47
48   /**
49    * Sets the aligfile value for this JpredResult.
50    * 
51    * @param aligfile
52    */
53   public void setAligfile(java.lang.String aligfile)
54   {
55     this.aligfile = aligfile;
56   }
57
58   /**
59    * Gets the predfile value for this JpredResult.
60    * 
61    * @return predfile
62    */
63   public java.lang.String getPredfile()
64   {
65     return predfile;
66   }
67
68   /**
69    * Sets the predfile value for this JpredResult.
70    * 
71    * @param predfile
72    */
73   public void setPredfile(java.lang.String predfile)
74   {
75     this.predfile = predfile;
76   }
77
78   private java.lang.Object __equalsCalc = null;
79
80   public synchronized boolean equals(java.lang.Object obj)
81   {
82     if (!(obj instanceof JpredResult))
83     {
84       return false;
85     }
86     JpredResult other = (JpredResult) obj;
87     if (obj == null)
88     {
89       return false;
90     }
91     if (this == obj)
92     {
93       return true;
94     }
95     if (__equalsCalc != null)
96     {
97       return (__equalsCalc == obj);
98     }
99     __equalsCalc = obj;
100     boolean _equals;
101     _equals = super.equals(obj)
102             && ((this.aligfile == null && other.getAligfile() == null) || (this.aligfile != null && this.aligfile
103                     .equals(other.getAligfile())))
104             && ((this.predfile == null && other.getPredfile() == null) || (this.predfile != null && this.predfile
105                     .equals(other.getPredfile())));
106     __equalsCalc = null;
107     return _equals;
108   }
109
110   private boolean __hashCodeCalc = false;
111
112   public synchronized int hashCode()
113   {
114     if (__hashCodeCalc)
115     {
116       return 0;
117     }
118     __hashCodeCalc = true;
119     int _hashCode = super.hashCode();
120     if (getAligfile() != null)
121     {
122       _hashCode += getAligfile().hashCode();
123     }
124     if (getPredfile() != null)
125     {
126       _hashCode += getPredfile().hashCode();
127     }
128     __hashCodeCalc = false;
129     return _hashCode;
130   }
131
132 }