update author list in license for (JAL-826)
[jalview.git] / src / vamsas / objects / simple / Msfalignment.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 Msfalignment implements java.io.Serializable
21 {
22   private java.lang.String msf;
23
24   private java.lang.String notes;
25
26   public Msfalignment()
27   {
28   }
29
30   public Msfalignment(java.lang.String msf, java.lang.String notes)
31   {
32     this.msf = msf;
33     this.notes = notes;
34   }
35
36   /**
37    * Gets the msf value for this Msfalignment.
38    * 
39    * @return msf
40    */
41   public java.lang.String getMsf()
42   {
43     return msf;
44   }
45
46   /**
47    * Sets the msf value for this Msfalignment.
48    * 
49    * @param msf
50    */
51   public void setMsf(java.lang.String msf)
52   {
53     this.msf = msf;
54   }
55
56   /**
57    * Gets the notes value for this Msfalignment.
58    * 
59    * @return notes
60    */
61   public java.lang.String getNotes()
62   {
63     return notes;
64   }
65
66   /**
67    * Sets the notes value for this Msfalignment.
68    * 
69    * @param notes
70    */
71   public void setNotes(java.lang.String notes)
72   {
73     this.notes = notes;
74   }
75
76   private java.lang.Object __equalsCalc = null;
77
78   public synchronized boolean equals(java.lang.Object obj)
79   {
80     if (!(obj instanceof Msfalignment))
81     {
82       return false;
83     }
84     Msfalignment other = (Msfalignment) obj;
85     if (obj == null)
86     {
87       return false;
88     }
89     if (this == obj)
90     {
91       return true;
92     }
93     if (__equalsCalc != null)
94     {
95       return (__equalsCalc == obj);
96     }
97     __equalsCalc = obj;
98     boolean _equals;
99     _equals = true
100             && ((this.msf == null && other.getMsf() == null) || (this.msf != null && this.msf
101                     .equals(other.getMsf())))
102             && ((this.notes == null && other.getNotes() == null) || (this.notes != null && this.notes
103                     .equals(other.getNotes())));
104     __equalsCalc = null;
105     return _equals;
106   }
107
108   private boolean __hashCodeCalc = false;
109
110   public synchronized int hashCode()
111   {
112     if (__hashCodeCalc)
113     {
114       return 0;
115     }
116     __hashCodeCalc = true;
117     int _hashCode = 1;
118     if (getMsf() != null)
119     {
120       _hashCode += getMsf().hashCode();
121     }
122     if (getNotes() != null)
123     {
124       _hashCode += getNotes().hashCode();
125     }
126     __hashCodeCalc = false;
127     return _hashCode;
128   }
129
130 }