4 * This file was auto-generated from WSDL
\r
5 * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
\r
9 * Jalview - A Sequence Alignment Editor and Viewer
\r
10 * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
12 * This program is free software; you can redistribute it and/or
\r
13 * modify it under the terms of the GNU General Public License
\r
14 * as published by the Free Software Foundation; either version 2
\r
15 * of the License, or (at your option) any later version.
\r
17 * This program is distributed in the hope that it will be useful,
\r
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
20 * GNU General Public License for more details.
\r
22 * You should have received a copy of the GNU General Public License
\r
23 * along with this program; if not, write to the Free Software
\r
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
26 package vamsas.objects.simple;
\r
28 public class Alignment
\r
29 extends vamsas.objects.simple.Object implements java.io.Serializable
\r
31 private java.lang.String gapchar;
\r
32 private java.lang.String[] method;
\r
33 private vamsas.objects.simple.SequenceSet seqs;
\r
34 private java.lang.Object __equalsCalc = null;
\r
35 private boolean __hashCodeCalc = false;
\r
41 public Alignment(java.lang.String gapchar, java.lang.String[] method,
\r
42 vamsas.objects.simple.SequenceSet seqs)
\r
44 this.gapchar = gapchar;
\r
45 this.method = method;
\r
50 * Gets the gapchar value for this Alignment.
\r
54 public java.lang.String getGapchar()
\r
60 * Sets the gapchar value for this Alignment.
\r
64 public void setGapchar(java.lang.String gapchar)
\r
66 this.gapchar = gapchar;
\r
70 * Gets the method value for this Alignment.
\r
74 public java.lang.String[] getMethod()
\r
80 * Sets the method value for this Alignment.
\r
84 public void setMethod(java.lang.String[] method)
\r
86 this.method = method;
\r
90 * Gets the seqs value for this Alignment.
\r
94 public vamsas.objects.simple.SequenceSet getSeqs()
\r
100 * Sets the seqs value for this Alignment.
\r
104 public void setSeqs(vamsas.objects.simple.SequenceSet seqs)
\r
109 public synchronized boolean equals(java.lang.Object obj)
\r
111 if (! (obj instanceof Alignment))
\r
116 Alignment other = (Alignment) obj;
\r
128 if (__equalsCalc != null)
\r
130 return (__equalsCalc == obj);
\r
133 __equalsCalc = obj;
\r
136 _equals = super.equals(obj) &&
\r
137 ( ( (this.gapchar == null) && (other.getGapchar() == null)) ||
\r
138 ( (this.gapchar != null) && this.gapchar.equals(other.getGapchar()))) &&
\r
139 ( ( (this.method == null) && (other.getMethod() == null)) ||
\r
140 ( (this.method != null) &&
\r
141 java.util.Arrays.equals(this.method, other.getMethod()))) &&
\r
142 ( ( (this.seqs == null) && (other.getSeqs() == null)) ||
\r
143 ( (this.seqs != null) && this.seqs.equals(other.getSeqs())));
\r
144 __equalsCalc = null;
\r
149 public synchronized int hashCode()
\r
151 if (__hashCodeCalc)
\r
156 __hashCodeCalc = true;
\r
158 int _hashCode = super.hashCode();
\r
160 if (getGapchar() != null)
\r
162 _hashCode += getGapchar().hashCode();
\r
165 if (getMethod() != null)
\r
167 for (int i = 0; i < java.lang.reflect.Array.getLength(getMethod());
\r
170 java.lang.Object obj = java.lang.reflect.Array.get(getMethod(),
\r
173 if ( (obj != null) && !obj.getClass().isArray())
\r
175 _hashCode += obj.hashCode();
\r
180 if (getSeqs() != null)
\r
182 _hashCode += getSeqs().hashCode();
\r
185 __hashCodeCalc = false;
\r