JAL-1645 Version-Rel Version 2.9 Year-Rel 2015 Licensing glob
[jalview.git] / src / vamsas / objects / simple / Secstructpred.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9)
3  * Copyright (C) 2015 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
10  * of the License, or (at your option) any later version.
11  *  
12  * Jalview is distributed in the hope that it will be useful, but 
13  * WITHOUT ANY WARRANTY; without even the implied warranty 
14  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15  * PURPOSE.  See the GNU General Public License for more details.
16  * 
17  * You should have received a copy of the GNU General Public License
18  * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
19  * The Jalview Authors are detailed in the 'AUTHORS' file.
20  */
21 package vamsas.objects.simple;
22
23 public class Secstructpred implements java.io.Serializable
24 {
25   private java.lang.String output;
26
27   public Secstructpred()
28   {
29   }
30
31   public Secstructpred(java.lang.String output)
32   {
33     this.output = output;
34   }
35
36   /**
37    * Gets the output value for this Secstructpred.
38    * 
39    * @return output
40    */
41   public java.lang.String getOutput()
42   {
43     return output;
44   }
45
46   /**
47    * Sets the output value for this Secstructpred.
48    * 
49    * @param output
50    */
51   public void setOutput(java.lang.String output)
52   {
53     this.output = output;
54   }
55
56   private java.lang.Object __equalsCalc = null;
57
58   public synchronized boolean equals(java.lang.Object obj)
59   {
60     if (obj == null)
61     {
62       return false;
63     }
64     if (!(obj instanceof Secstructpred))
65     {
66       return false;
67     }
68     Secstructpred other = (Secstructpred) obj;
69     if (this == obj)
70     {
71       return true;
72     }
73     if (__equalsCalc != null)
74     {
75       return (__equalsCalc == obj);
76     }
77     __equalsCalc = obj;
78     boolean _equals;
79     _equals = true && ((this.output == null && other.getOutput() == null) || (this.output != null && this.output
80             .equals(other.getOutput())));
81     __equalsCalc = null;
82     return _equals;
83   }
84
85   private boolean __hashCodeCalc = false;
86
87   public synchronized int hashCode()
88   {
89     if (__hashCodeCalc)
90     {
91       return 0;
92     }
93     __hashCodeCalc = true;
94     int _hashCode = 1;
95     if (getOutput() != null)
96     {
97       _hashCode += getOutput().hashCode();
98     }
99     __hashCodeCalc = false;
100     return _hashCode;
101   }
102
103 }