4 * This file was auto-generated from WSDL
5 * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
9 * Jalview - A Sequence Alignment Editor and Viewer
10 * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
26 package vamsas.objects.simple;
28 public class SequenceSet implements java.io.Serializable {
29 private vamsas.objects.simple.Sequence[] seqs;
30 private java.lang.Object __equalsCalc = null;
31 private boolean __hashCodeCalc = false;
33 public SequenceSet() {
36 public SequenceSet(vamsas.objects.simple.Sequence[] seqs) {
41 * Gets the seqs value for this SequenceSet.
45 public vamsas.objects.simple.Sequence[] getSeqs() {
50 * Sets the seqs value for this SequenceSet.
54 public void setSeqs(vamsas.objects.simple.Sequence[] seqs) {
58 public synchronized boolean equals(java.lang.Object obj) {
59 if (!(obj instanceof SequenceSet)) {
63 SequenceSet other = (SequenceSet) obj;
73 if (__equalsCalc != null) {
74 return (__equalsCalc == obj);
81 (((this.seqs == null) && (other.getSeqs() == null)) ||
82 ((this.seqs != null) &&
83 java.util.Arrays.equals(this.seqs, other.getSeqs())));
89 public synchronized int hashCode() {
94 __hashCodeCalc = true;
98 if (getSeqs() != null) {
99 for (int i = 0; i < java.lang.reflect.Array.getLength(getSeqs());
101 java.lang.Object obj = java.lang.reflect.Array.get(getSeqs(), i);
103 if ((obj != null) && !obj.getClass().isArray()) {
104 _hashCode += obj.hashCode();
109 __hashCodeCalc = false;