updated to jalview 2.1 and begun ArchiveClient/VamsasClient/VamsasStore updates.
[jalview.git] / src / vamsas / objects / simple / Object.java
1 /**
2  * Object.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 /*
9 * Jalview - A Sequence Alignment Editor and Viewer
10 * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
11 *
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.
16 *
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.
21 *
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
25 */
26 package vamsas.objects.simple;
27
28 public abstract class Object implements java.io.Serializable {
29     private java.lang.Object __equalsCalc = null;
30     private boolean __hashCodeCalc = false;
31
32     public Object() {
33     }
34
35     public synchronized boolean equals(java.lang.Object obj) {
36         if (!(obj instanceof Object)) {
37             return false;
38         }
39
40         //Object other = (Object) obj;
41
42         if (obj == null) {
43             return false;
44         }
45
46         if (this == obj) {
47             return true;
48         }
49
50         if (__equalsCalc != null) {
51             return (__equalsCalc == obj);
52         }
53
54         __equalsCalc = obj;
55
56         boolean _equals;
57         _equals = true;
58         __equalsCalc = null;
59
60         return _equals;
61     }
62
63     public synchronized int hashCode() {
64         if (__hashCodeCalc) {
65             return 0;
66         }
67
68         __hashCodeCalc = true;
69
70         int _hashCode = 1;
71         __hashCodeCalc = false;
72
73         return _hashCode;
74     }
75 }