2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
3 * Copyright (C) 2014 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 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/>.
17 * The Jalview Authors are detailed in the 'AUTHORS' file.
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;