2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
\r
3 * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
\r
5 * This file is part of Jalview.
\r
7 * Jalview is free software: you can redistribute it and/or
\r
8 * modify it under the terms of the GNU General Public License
\r
9 * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
\r
11 * Jalview is distributed in the hope that it will be useful, but
\r
12 * WITHOUT ANY WARRANTY; without even the implied warranty
\r
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
\r
14 * PURPOSE. See the GNU General Public License for more details.
\r
16 * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
\r
18 package vamsas.objects.simple;
\r
20 public class SeqSearchResult extends vamsas.objects.simple.Result implements
\r
21 java.io.Serializable
\r
23 private vamsas.objects.simple.Alignment alignment;
\r
25 private java.lang.String annotation;
\r
27 private java.lang.String features;
\r
29 private java.lang.String newickTree;
\r
31 public SeqSearchResult()
\r
35 public SeqSearchResult(vamsas.objects.simple.Alignment alignment,
\r
36 java.lang.String annotation, java.lang.String features,
\r
37 java.lang.String newickTree)
\r
39 this.alignment = alignment;
\r
40 this.annotation = annotation;
\r
41 this.features = features;
\r
42 this.newickTree = newickTree;
\r
46 * Gets the alignment value for this SeqSearchResult.
\r
50 public vamsas.objects.simple.Alignment getAlignment()
\r
56 * Sets the alignment value for this SeqSearchResult.
\r
60 public void setAlignment(vamsas.objects.simple.Alignment alignment)
\r
62 this.alignment = alignment;
\r
66 * Gets the annotation value for this SeqSearchResult.
\r
68 * @return annotation
\r
70 public java.lang.String getAnnotation()
\r
76 * Sets the annotation value for this SeqSearchResult.
\r
80 public void setAnnotation(java.lang.String annotation)
\r
82 this.annotation = annotation;
\r
86 * Gets the features value for this SeqSearchResult.
\r
90 public java.lang.String getFeatures()
\r
96 * Sets the features value for this SeqSearchResult.
\r
100 public void setFeatures(java.lang.String features)
\r
102 this.features = features;
\r
106 * Gets the newickTree value for this SeqSearchResult.
\r
108 * @return newickTree
\r
110 public java.lang.String getNewickTree()
\r
116 * Sets the newickTree value for this SeqSearchResult.
\r
118 * @param newickTree
\r
120 public void setNewickTree(java.lang.String newickTree)
\r
122 this.newickTree = newickTree;
\r
125 private java.lang.Object __equalsCalc = null;
\r
127 public synchronized boolean equals(java.lang.Object obj)
\r
129 if (!(obj instanceof SeqSearchResult))
\r
131 SeqSearchResult other = (SeqSearchResult) obj;
\r
136 if (__equalsCalc != null)
\r
138 return (__equalsCalc == obj);
\r
140 __equalsCalc = obj;
\r
142 _equals = super.equals(obj)
\r
143 && ((this.alignment == null && other.getAlignment() == null) || (this.alignment != null && this.alignment
\r
144 .equals(other.getAlignment())))
\r
145 && ((this.annotation == null && other.getAnnotation() == null) || (this.annotation != null && this.annotation
\r
146 .equals(other.getAnnotation())))
\r
147 && ((this.features == null && other.getFeatures() == null) || (this.features != null && this.features
\r
148 .equals(other.getFeatures())))
\r
149 && ((this.newickTree == null && other.getNewickTree() == null) || (this.newickTree != null && this.newickTree
\r
150 .equals(other.getNewickTree())));
\r
151 __equalsCalc = null;
\r
155 private boolean __hashCodeCalc = false;
\r
157 public synchronized int hashCode()
\r
159 if (__hashCodeCalc)
\r
163 __hashCodeCalc = true;
\r
164 int _hashCode = super.hashCode();
\r
165 if (getAlignment() != null)
\r
167 _hashCode += getAlignment().hashCode();
\r
169 if (getAnnotation() != null)
\r
171 _hashCode += getAnnotation().hashCode();
\r
173 if (getFeatures() != null)
\r
175 _hashCode += getFeatures().hashCode();
\r
177 if (getNewickTree() != null)
\r
179 _hashCode += getNewickTree().hashCode();
\r
181 __hashCodeCalc = false;
\r