Debian Codegraph @

src/vamsas/objects/simple/SeqSearchResult.java

raw
1 /*
2 * Jalview - A Sequence Alignment Editor and Viewer (2.11.5.0)
3 * Copyright (C) 2025 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
10 * of the License, or (at your option) any later version.
11 *
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.
16 *
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.
20 */
21 package vamsas.objects.simple;
22
23 public class SeqSearchResult extends vamsas.objects.simple.Result
24 implements java.io.Serializable
25 {
26 private vamsas.objects.simple.Alignment alignment;
27
28 private java.lang.String annotation;
29
30 private java.lang.String features;
31
32 private java.lang.String newickTree;
33
34 public SeqSearchResult()
35 {
36 }
37
38 public SeqSearchResult(vamsas.objects.simple.Alignment alignment,
39 java.lang.String annotation, java.lang.String features,
40 java.lang.String newickTree)
41 {
42 this.alignment = alignment;
43 this.annotation = annotation;
44 this.features = features;
45 this.newickTree = newickTree;
46 }
47
48 /**
49 * Gets the alignment value for this SeqSearchResult.
50 *
51 * @return alignment
52 */
53 public vamsas.objects.simple.Alignment getAlignment()
54 {
55 return alignment;
56 }
57
58 /**
59 * Sets the alignment value for this SeqSearchResult.
60 *
61 * @param alignment
62 */
63 public void setAlignment(vamsas.objects.simple.Alignment alignment)
64 {
65 this.alignment = alignment;
66 }
67
68 /**
69 * Gets the annotation value for this SeqSearchResult.
70 *
71 * @return annotation
72 */
73 public java.lang.String getAnnotation()
74 {
75 return annotation;
76 }
77
78 /**
79 * Sets the annotation value for this SeqSearchResult.
80 *
81 * @param annotation
82 */
83 public void setAnnotation(java.lang.String annotation)
84 {
85 this.annotation = annotation;
86 }
87
88 /**
89 * Gets the features value for this SeqSearchResult.
90 *
91 * @return features
92 */
93 public java.lang.String getFeatures()
94 {
95 return features;
96 }
97
98 /**
99 * Sets the features value for this SeqSearchResult.
100 *
101 * @param features
102 */
103 public void setFeatures(java.lang.String features)
104 {
105 this.features = features;
106 }
107
108 /**
109 * Gets the newickTree value for this SeqSearchResult.
110 *
111 * @return newickTree
112 */
113 public java.lang.String getNewickTree()
114 {
115 return newickTree;
116 }
117
118 /**
119 * Sets the newickTree value for this SeqSearchResult.
120 *
121 * @param newickTree
122 */
123 public void setNewickTree(java.lang.String newickTree)
124 {
125 this.newickTree = newickTree;
126 }
127
128 private java.lang.Object __equalsCalc = null;
129
130 @Override
131 public synchronized boolean equals(java.lang.Object obj)
132 {
133 if (obj == null)
134 {
135 return false;
136 }
137 if (!(obj instanceof SeqSearchResult))
138 {
139 return false;
140 }
141 SeqSearchResult other = (SeqSearchResult) obj;
142 if (this == obj)
143 {
144 return true;
145 }
146 if (__equalsCalc != null)
147 {
148 return (__equalsCalc == obj);
149 }
150 __equalsCalc = obj;
151 boolean _equals;
152 _equals = super.equals(obj)
153 && ((this.alignment == null && other.getAlignment() == null)
154 || (this.alignment != null
155 && this.alignment.equals(other.getAlignment())))
156 && ((this.annotation == null && other.getAnnotation() == null)
157 || (this.annotation != null && this.annotation
158 .equals(other.getAnnotation())))
159 && ((this.features == null && other.getFeatures() == null)
160 || (this.features != null
161 && this.features.equals(other.getFeatures())))
162 && ((this.newickTree == null && other.getNewickTree() == null)
163 || (this.newickTree != null && this.newickTree
164 .equals(other.getNewickTree())));
165 __equalsCalc = null;
166 return _equals;
167 }
168
169 private boolean __hashCodeCalc = false;
170
171 @Override
172 public synchronized int hashCode()
173 {
174 if (__hashCodeCalc)
175 {
176 return 0;
177 }
178 __hashCodeCalc = true;
179 int _hashCode = super.hashCode();
180 if (getAlignment() != null)
181 {
182 _hashCode += getAlignment().hashCode();
183 }
184 if (getAnnotation() != null)
185 {
186 _hashCode += getAnnotation().hashCode();
187 }
188 if (getFeatures() != null)
189 {
190 _hashCode += getFeatures().hashCode();
191 }
192 if (getNewickTree() != null)
193 {
194 _hashCode += getNewickTree().hashCode();
195 }
196 __hashCodeCalc = false;
197 return _hashCode;
198 }
199
200 }