2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)
3 * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 package vamsas.objects.simple;
21 public class JpredResult extends vamsas.objects.simple.Result implements
24 private java.lang.String aligfile;
26 private java.lang.String predfile;
32 public JpredResult(java.lang.String aligfile, java.lang.String predfile)
34 this.aligfile = aligfile;
35 this.predfile = predfile;
39 * Gets the aligfile value for this JpredResult.
43 public java.lang.String getAligfile()
49 * Sets the aligfile value for this JpredResult.
53 public void setAligfile(java.lang.String aligfile)
55 this.aligfile = aligfile;
59 * Gets the predfile value for this JpredResult.
63 public java.lang.String getPredfile()
69 * Sets the predfile value for this JpredResult.
73 public void setPredfile(java.lang.String predfile)
75 this.predfile = predfile;
78 private java.lang.Object __equalsCalc = null;
80 public synchronized boolean equals(java.lang.Object obj)
82 if (!(obj instanceof JpredResult))
86 JpredResult other = (JpredResult) obj;
95 if (__equalsCalc != null)
97 return (__equalsCalc == obj);
101 _equals = super.equals(obj)
102 && ((this.aligfile == null && other.getAligfile() == null) || (this.aligfile != null && this.aligfile
103 .equals(other.getAligfile())))
104 && ((this.predfile == null && other.getPredfile() == null) || (this.predfile != null && this.predfile
105 .equals(other.getPredfile())));
110 private boolean __hashCodeCalc = false;
112 public synchronized int hashCode()
118 __hashCodeCalc = true;
119 int _hashCode = super.hashCode();
120 if (getAligfile() != null)
122 _hashCode += getAligfile().hashCode();
124 if (getPredfile() != null)
126 _hashCode += getPredfile().hashCode();
128 __hashCodeCalc = false;