2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)
\r
3 * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
5 * This program is free software; you can redistribute it and/or
\r
6 * modify it under the terms of the GNU General Public License
\r
7 * as published by the Free Software Foundation; either version 2
\r
8 * of the License, or (at your option) any later version.
\r
10 * This program is distributed in the hope that it will be useful,
\r
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 * GNU General Public License for more details.
\r
15 * You should have received a copy of the GNU General Public License
\r
16 * along with this program; if not, write to the Free Software
\r
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
19 package vamsas.objects.simple;
\r
21 public class SeqSearchResult extends vamsas.objects.simple.Result implements
\r
22 java.io.Serializable
\r
24 private vamsas.objects.simple.Alignment alignment;
\r
26 private java.lang.String annotation;
\r
28 private java.lang.String features;
\r
30 private java.lang.String newickTree;
\r
32 public SeqSearchResult()
\r
36 public SeqSearchResult(vamsas.objects.simple.Alignment alignment,
\r
37 java.lang.String annotation, java.lang.String features,
\r
38 java.lang.String newickTree)
\r
40 this.alignment = alignment;
\r
41 this.annotation = annotation;
\r
42 this.features = features;
\r
43 this.newickTree = newickTree;
\r
47 * Gets the alignment value for this SeqSearchResult.
\r
51 public vamsas.objects.simple.Alignment getAlignment()
\r
57 * Sets the alignment value for this SeqSearchResult.
\r
61 public void setAlignment(vamsas.objects.simple.Alignment alignment)
\r
63 this.alignment = alignment;
\r
67 * Gets the annotation value for this SeqSearchResult.
\r
69 * @return annotation
\r
71 public java.lang.String getAnnotation()
\r
77 * Sets the annotation value for this SeqSearchResult.
\r
81 public void setAnnotation(java.lang.String annotation)
\r
83 this.annotation = annotation;
\r
87 * Gets the features value for this SeqSearchResult.
\r
91 public java.lang.String getFeatures()
\r
97 * Sets the features value for this SeqSearchResult.
\r
101 public void setFeatures(java.lang.String features)
\r
103 this.features = features;
\r
107 * Gets the newickTree value for this SeqSearchResult.
\r
109 * @return newickTree
\r
111 public java.lang.String getNewickTree()
\r
117 * Sets the newickTree value for this SeqSearchResult.
\r
119 * @param newickTree
\r
121 public void setNewickTree(java.lang.String newickTree)
\r
123 this.newickTree = newickTree;
\r
126 private java.lang.Object __equalsCalc = null;
\r
128 public synchronized boolean equals(java.lang.Object obj)
\r
130 if (!(obj instanceof SeqSearchResult))
\r
132 SeqSearchResult other = (SeqSearchResult) obj;
\r
137 if (__equalsCalc != null)
\r
139 return (__equalsCalc == obj);
\r
141 __equalsCalc = obj;
\r
143 _equals = super.equals(obj)
\r
144 && ((this.alignment == null && other.getAlignment() == null) || (this.alignment != null && this.alignment
\r
145 .equals(other.getAlignment())))
\r
146 && ((this.annotation == null && other.getAnnotation() == null) || (this.annotation != null && this.annotation
\r
147 .equals(other.getAnnotation())))
\r
148 && ((this.features == null && other.getFeatures() == null) || (this.features != null && this.features
\r
149 .equals(other.getFeatures())))
\r
150 && ((this.newickTree == null && other.getNewickTree() == null) || (this.newickTree != null && this.newickTree
\r
151 .equals(other.getNewickTree())));
\r
152 __equalsCalc = null;
\r
156 private boolean __hashCodeCalc = false;
\r
158 public synchronized int hashCode()
\r
160 if (__hashCodeCalc)
\r
164 __hashCodeCalc = true;
\r
165 int _hashCode = super.hashCode();
\r
166 if (getAlignment() != null)
\r
168 _hashCode += getAlignment().hashCode();
\r
170 if (getAnnotation() != null)
\r
172 _hashCode += getAnnotation().hashCode();
\r
174 if (getFeatures() != null)
\r
176 _hashCode += getFeatures().hashCode();
\r
178 if (getNewickTree() != null)
\r
180 _hashCode += getNewickTree().hashCode();
\r
182 __hashCodeCalc = false;
\r