2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
3 * Copyright (C) 2014 The Jalview Authors
5 * This file is part of Jalview.
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.
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.
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.
21 package vamsas.objects.simple;
23 public class SeqSearchResult extends vamsas.objects.simple.Result implements
26 private vamsas.objects.simple.Alignment alignment;
28 private java.lang.String annotation;
30 private java.lang.String features;
32 private java.lang.String newickTree;
34 public SeqSearchResult()
38 public SeqSearchResult(vamsas.objects.simple.Alignment alignment,
39 java.lang.String annotation, java.lang.String features,
40 java.lang.String newickTree)
42 this.alignment = alignment;
43 this.annotation = annotation;
44 this.features = features;
45 this.newickTree = newickTree;
49 * Gets the alignment value for this SeqSearchResult.
53 public vamsas.objects.simple.Alignment getAlignment()
59 * Sets the alignment value for this SeqSearchResult.
63 public void setAlignment(vamsas.objects.simple.Alignment alignment)
65 this.alignment = alignment;
69 * Gets the annotation value for this SeqSearchResult.
73 public java.lang.String getAnnotation()
79 * Sets the annotation value for this SeqSearchResult.
83 public void setAnnotation(java.lang.String annotation)
85 this.annotation = annotation;
89 * Gets the features value for this SeqSearchResult.
93 public java.lang.String getFeatures()
99 * Sets the features value for this SeqSearchResult.
103 public void setFeatures(java.lang.String features)
105 this.features = features;
109 * Gets the newickTree value for this SeqSearchResult.
113 public java.lang.String getNewickTree()
119 * Sets the newickTree value for this SeqSearchResult.
123 public void setNewickTree(java.lang.String newickTree)
125 this.newickTree = newickTree;
128 private java.lang.Object __equalsCalc = null;
130 public synchronized boolean equals(java.lang.Object obj)
132 if (!(obj instanceof SeqSearchResult))
134 SeqSearchResult other = (SeqSearchResult) obj;
139 if (__equalsCalc != null)
141 return (__equalsCalc == obj);
145 _equals = super.equals(obj)
146 && ((this.alignment == null && other.getAlignment() == null) || (this.alignment != null && this.alignment
147 .equals(other.getAlignment())))
148 && ((this.annotation == null && other.getAnnotation() == null) || (this.annotation != null && this.annotation
149 .equals(other.getAnnotation())))
150 && ((this.features == null && other.getFeatures() == null) || (this.features != null && this.features
151 .equals(other.getFeatures())))
152 && ((this.newickTree == null && other.getNewickTree() == null) || (this.newickTree != null && this.newickTree
153 .equals(other.getNewickTree())));
158 private boolean __hashCodeCalc = false;
160 public synchronized int hashCode()
166 __hashCodeCalc = true;
167 int _hashCode = super.hashCode();
168 if (getAlignment() != null)
170 _hashCode += getAlignment().hashCode();
172 if (getAnnotation() != null)
174 _hashCode += getAnnotation().hashCode();
176 if (getFeatures() != null)
178 _hashCode += getFeatures().hashCode();
180 if (getNewickTree() != null)
182 _hashCode += getNewickTree().hashCode();
184 __hashCodeCalc = false;