2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
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 of the License, or (at your option) any later version.
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.
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.
19 package vamsas.objects.simple;
21 public class SeqSearchResult extends vamsas.objects.simple.Result implements
24 private vamsas.objects.simple.Alignment alignment;
26 private java.lang.String annotation;
28 private java.lang.String features;
30 private java.lang.String newickTree;
32 public SeqSearchResult()
36 public SeqSearchResult(vamsas.objects.simple.Alignment alignment,
37 java.lang.String annotation, java.lang.String features,
38 java.lang.String newickTree)
40 this.alignment = alignment;
41 this.annotation = annotation;
42 this.features = features;
43 this.newickTree = newickTree;
47 * Gets the alignment value for this SeqSearchResult.
51 public vamsas.objects.simple.Alignment getAlignment()
57 * Sets the alignment value for this SeqSearchResult.
61 public void setAlignment(vamsas.objects.simple.Alignment alignment)
63 this.alignment = alignment;
67 * Gets the annotation value for this SeqSearchResult.
71 public java.lang.String getAnnotation()
77 * Sets the annotation value for this SeqSearchResult.
81 public void setAnnotation(java.lang.String annotation)
83 this.annotation = annotation;
87 * Gets the features value for this SeqSearchResult.
91 public java.lang.String getFeatures()
97 * Sets the features value for this SeqSearchResult.
101 public void setFeatures(java.lang.String features)
103 this.features = features;
107 * Gets the newickTree value for this SeqSearchResult.
111 public java.lang.String getNewickTree()
117 * Sets the newickTree value for this SeqSearchResult.
121 public void setNewickTree(java.lang.String newickTree)
123 this.newickTree = newickTree;
126 private java.lang.Object __equalsCalc = null;
128 public synchronized boolean equals(java.lang.Object obj)
130 if (!(obj instanceof SeqSearchResult))
132 SeqSearchResult other = (SeqSearchResult) obj;
137 if (__equalsCalc != null)
139 return (__equalsCalc == obj);
143 _equals = super.equals(obj)
144 && ((this.alignment == null && other.getAlignment() == null) || (this.alignment != null && this.alignment
145 .equals(other.getAlignment())))
146 && ((this.annotation == null && other.getAnnotation() == null) || (this.annotation != null && this.annotation
147 .equals(other.getAnnotation())))
148 && ((this.features == null && other.getFeatures() == null) || (this.features != null && this.features
149 .equals(other.getFeatures())))
150 && ((this.newickTree == null && other.getNewickTree() == null) || (this.newickTree != null && this.newickTree
151 .equals(other.getNewickTree())));
156 private boolean __hashCodeCalc = false;
158 public synchronized int hashCode()
164 __hashCodeCalc = true;
165 int _hashCode = super.hashCode();
166 if (getAlignment() != null)
168 _hashCode += getAlignment().hashCode();
170 if (getAnnotation() != null)
172 _hashCode += getAnnotation().hashCode();
174 if (getFeatures() != null)
176 _hashCode += getFeatures().hashCode();
178 if (getNewickTree() != null)
180 _hashCode += getNewickTree().hashCode();
182 __hashCodeCalc = false;