Formatting
[jalview.git] / src / vamsas / objects / simple / Sequence.java
1 /**
2  * Sequence.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
6  */
7
8 package vamsas.objects.simple;
9
10 public class Sequence
11     implements java.io.Serializable
12 {
13   private java.lang.String id;
14   private java.lang.String seq;
15
16   public Sequence()
17   {
18   }
19
20   public Sequence(
21       java.lang.String id,
22       java.lang.String seq)
23   {
24     this.id = id;
25     this.seq = seq;
26   }
27
28   /**
29    * Gets the id value for this Sequence.
30    *
31    * @return id
32    */
33   public java.lang.String getId()
34   {
35     return id;
36   }
37
38   /**
39    * Sets the id value for this Sequence.
40    *
41    * @param id
42    */
43   public void setId(java.lang.String id)
44   {
45     this.id = id;
46   }
47
48   /**
49    * Gets the seq value for this Sequence.
50    *
51    * @return seq
52    */
53   public java.lang.String getSeq()
54   {
55     return seq;
56   }
57
58   /**
59    * Sets the seq value for this Sequence.
60    *
61    * @param seq
62    */
63   public void setSeq(java.lang.String seq)
64   {
65     this.seq = seq;
66   }
67
68   private java.lang.Object __equalsCalc = null;
69   public synchronized boolean equals(java.lang.Object obj)
70   {
71     if (! (obj instanceof Sequence))
72     {
73       return false;
74     }
75     Sequence other = (Sequence) obj;
76     if (obj == null)
77     {
78       return false;
79     }
80     if (this == obj)
81     {
82       return true;
83     }
84     if (__equalsCalc != null)
85     {
86       return (__equalsCalc == obj);
87     }
88     __equalsCalc = obj;
89     boolean _equals;
90     _equals = true &&
91         ( (this.id == null && other.getId() == null) ||
92          (this.id != null &&
93           this.id.equals(other.getId()))) &&
94         ( (this.seq == null && other.getSeq() == null) ||
95          (this.seq != null &&
96           this.seq.equals(other.getSeq())));
97     __equalsCalc = null;
98     return _equals;
99   }
100
101   private boolean __hashCodeCalc = false;
102   public synchronized int hashCode()
103   {
104     if (__hashCodeCalc)
105     {
106       return 0;
107     }
108     __hashCodeCalc = true;
109     int _hashCode = 1;
110     if (getId() != null)
111     {
112       _hashCode += getId().hashCode();
113     }
114     if (getSeq() != null)
115     {
116       _hashCode += getSeq().hashCode();
117     }
118     __hashCodeCalc = false;
119     return _hashCode;
120   }
121
122 }