2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ 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 JpredResult extends vamsas.objects.simple.Result implements
26 private java.lang.String aligfile;
28 private java.lang.String predfile;
34 public JpredResult(java.lang.String aligfile, java.lang.String predfile)
36 this.aligfile = aligfile;
37 this.predfile = predfile;
41 * Gets the aligfile value for this JpredResult.
45 public java.lang.String getAligfile()
51 * Sets the aligfile value for this JpredResult.
55 public void setAligfile(java.lang.String aligfile)
57 this.aligfile = aligfile;
61 * Gets the predfile value for this JpredResult.
65 public java.lang.String getPredfile()
71 * Sets the predfile value for this JpredResult.
75 public void setPredfile(java.lang.String predfile)
77 this.predfile = predfile;
80 private java.lang.Object __equalsCalc = null;
82 public synchronized boolean equals(java.lang.Object obj)
84 if (!(obj instanceof JpredResult))
88 JpredResult other = (JpredResult) obj;
97 if (__equalsCalc != null)
99 return (__equalsCalc == obj);
103 _equals = super.equals(obj)
104 && ((this.aligfile == null && other.getAligfile() == null) || (this.aligfile != null && this.aligfile
105 .equals(other.getAligfile())))
106 && ((this.predfile == null && other.getPredfile() == null) || (this.predfile != null && this.predfile
107 .equals(other.getPredfile())));
112 private boolean __hashCodeCalc = false;
114 public synchronized int hashCode()
120 __hashCodeCalc = true;
121 int _hashCode = super.hashCode();
122 if (getAligfile() != null)
124 _hashCode += getAligfile().hashCode();
126 if (getPredfile() != null)
128 _hashCode += getPredfile().hashCode();
130 __hashCodeCalc = false;