2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3 * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
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/>.
18 package vamsas.objects.simple;
20 public class JpredResult extends vamsas.objects.simple.Result implements
23 private java.lang.String aligfile;
25 private java.lang.String predfile;
31 public JpredResult(java.lang.String aligfile, java.lang.String predfile)
33 this.aligfile = aligfile;
34 this.predfile = predfile;
38 * Gets the aligfile value for this JpredResult.
42 public java.lang.String getAligfile()
48 * Sets the aligfile value for this JpredResult.
52 public void setAligfile(java.lang.String aligfile)
54 this.aligfile = aligfile;
58 * Gets the predfile value for this JpredResult.
62 public java.lang.String getPredfile()
68 * Sets the predfile value for this JpredResult.
72 public void setPredfile(java.lang.String predfile)
74 this.predfile = predfile;
77 private java.lang.Object __equalsCalc = null;
79 public synchronized boolean equals(java.lang.Object obj)
81 if (!(obj instanceof JpredResult))
85 JpredResult other = (JpredResult) obj;
94 if (__equalsCalc != null)
96 return (__equalsCalc == obj);
100 _equals = super.equals(obj)
101 && ((this.aligfile == null && other.getAligfile() == null) || (this.aligfile != null && this.aligfile
102 .equals(other.getAligfile())))
103 && ((this.predfile == null && other.getPredfile() == null) || (this.predfile != null && this.predfile
104 .equals(other.getPredfile())));
109 private boolean __hashCodeCalc = false;
111 public synchronized int hashCode()
117 __hashCodeCalc = true;
118 int _hashCode = super.hashCode();
119 if (getAligfile() != null)
121 _hashCode += getAligfile().hashCode();
123 if (getPredfile() != null)
125 _hashCode += getPredfile().hashCode();
127 __hashCodeCalc = false;