Debian Codegraph @

src/vamsas/objects/simple/Secstructpred.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 Secstructpred implements java.io.Serializable
24 {
25 private java.lang.String output;
26
27 public Secstructpred()
28 {
29 }
30
31 public Secstructpred(java.lang.String output)
32 {
33 this.output = output;
34 }
35
36 /**
37 * Gets the output value for this Secstructpred.
38 *
39 * @return output
40 */
41 public java.lang.String getOutput()
42 {
43 return output;
44 }
45
46 /**
47 * Sets the output value for this Secstructpred.
48 *
49 * @param output
50 */
51 public void setOutput(java.lang.String output)
52 {
53 this.output = output;
54 }
55
56 private java.lang.Object __equalsCalc = null;
57
58 public synchronized boolean equals(java.lang.Object obj)
59 {
60 if (obj == null)
61 {
62 return false;
63 }
64 if (!(obj instanceof Secstructpred))
65 {
66 return false;
67 }
68 Secstructpred other = (Secstructpred) obj;
69 if (this == obj)
70 {
71 return true;
72 }
73 if (__equalsCalc != null)
74 {
75 return (__equalsCalc == obj);
76 }
77 __equalsCalc = obj;
78 boolean _equals;
79 _equals = true && ((this.output == null && other.getOutput() == null)
80 || (this.output != null
81 && this.output.equals(other.getOutput())));
82 __equalsCalc = null;
83 return _equals;
84 }
85
86 private boolean __hashCodeCalc = false;
87
88 public synchronized int hashCode()
89 {
90 if (__hashCodeCalc)
91 {
92 return 0;
93 }
94 __hashCodeCalc = true;
95 int _hashCode = 1;
96 if (getOutput() != null)
97 {
98 _hashCode += getOutput().hashCode();
99 }
100 __hashCodeCalc = false;
101 return _hashCode;
102 }
103
104 }