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) 2005 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
27 package vamsas.objects.simple;
29 public class Sequence implements java.io.Serializable {
30 private java.lang.String id;
31 private java.lang.String seq;
38 java.lang.String seq) {
45 * Gets the id value for this Sequence.
49 public java.lang.String getId() {
55 * Sets the id value for this Sequence.
59 public void setId(java.lang.String id) {
65 * Gets the seq value for this Sequence.
69 public java.lang.String getSeq() {
75 * Sets the seq value for this Sequence.
79 public void setSeq(java.lang.String seq) {
83 private java.lang.Object __equalsCalc = null;
84 public synchronized boolean equals(java.lang.Object obj) {
85 if (!(obj instanceof Sequence)) return false;
86 Sequence other = (Sequence) obj;
87 if (obj == null) return false;
88 if (this == obj) return true;
89 if (__equalsCalc != null) {
90 return (__equalsCalc == obj);
95 ((this.id==null && other.getId()==null) ||
97 this.id.equals(other.getId()))) &&
98 ((this.seq==null && other.getSeq()==null) ||
100 this.seq.equals(other.getSeq())));
105 private boolean __hashCodeCalc = false;
106 public synchronized int hashCode() {
107 if (__hashCodeCalc) {
110 __hashCodeCalc = true;
112 if (getId() != null) {
113 _hashCode += getId().hashCode();
115 if (getSeq() != null) {
116 _hashCode += getSeq().hashCode();
118 __hashCodeCalc = false;