ba18a9a562e576fe472330e0d2718493c1e08772
[jalview.git] / src / vamsas / objects / simple / Msfalignment.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 Msfalignment implements java.io.Serializable
22 {
23   private java.lang.String msf;
24
25   private java.lang.String notes;
26
27   public Msfalignment()
28   {
29   }
30
31   public Msfalignment(java.lang.String msf, java.lang.String notes)
32   {
33     this.msf = msf;
34     this.notes = notes;
35   }
36
37   /**
38    * Gets the msf value for this Msfalignment.
39    * 
40    * @return msf
41    */
42   public java.lang.String getMsf()
43   {
44     return msf;
45   }
46
47   /**
48    * Sets the msf value for this Msfalignment.
49    * 
50    * @param msf
51    */
52   public void setMsf(java.lang.String msf)
53   {
54     this.msf = msf;
55   }
56
57   /**
58    * Gets the notes value for this Msfalignment.
59    * 
60    * @return notes
61    */
62   public java.lang.String getNotes()
63   {
64     return notes;
65   }
66
67   /**
68    * Sets the notes value for this Msfalignment.
69    * 
70    * @param notes
71    */
72   public void setNotes(java.lang.String notes)
73   {
74     this.notes = notes;
75   }
76
77   private java.lang.Object __equalsCalc = null;
78
79   public synchronized boolean equals(java.lang.Object obj)
80   {
81     if (!(obj instanceof Msfalignment))
82     {
83       return false;
84     }
85     Msfalignment other = (Msfalignment) 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 = true
101             && ((this.msf == null && other.getMsf() == null) || (this.msf != null && this.msf
102                     .equals(other.getMsf())))
103             && ((this.notes == null && other.getNotes() == null) || (this.notes != null && this.notes
104                     .equals(other.getNotes())));
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 = 1;
119     if (getMsf() != null)
120     {
121       _hashCode += getMsf().hashCode();
122     }
123     if (getNotes() != null)
124     {
125       _hashCode += getNotes().hashCode();
126     }
127     __hashCodeCalc = false;
128     return _hashCode;
129   }
130
131 }